Skip to content

Commit

Permalink
try to make CI work
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed May 1, 2024
1 parent e0bf5ca commit 383a9b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "18"
- name: npm install
- working-directory: "./packages/openapi-gen-ts"
run: npm install
- name: Generate client
run: npm run gen
- name: TypeCheck
run: "./tools/gen.sh"
- name: Typecheck
working-directory: "./packages/openapi-gen-ts"
run: npm run tsc
- name: Lint
working-directory: "./packages/openapi-gen-ts"
run: npx eslint .
- name: Test
run: npm test
working-directory: "./packages/openapi-gen-ts"
run: npm test run
2 changes: 1 addition & 1 deletion tools/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ SPEC_FILE="./spec.json"
# TODO: we could get rid of this DL if a test didn't rely on it
curl --fail "$SPEC_URL" -o $SPEC_FILE

npx tsx "$ROOT_DIR/packages/openapi-gen/index.ts" $SPEC_FILE $DEST_DIR
npx tsx "$ROOT_DIR/packages/openapi-gen-ts/src/index.ts" $SPEC_FILE $DEST_DIR
npx prettier --write --log-level error "$DEST_DIR"

0 comments on commit 383a9b0

Please sign in to comment.