Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Apr 10, 2024
1 parent f01d768 commit f11c1a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,18 @@ jobs:
with:
node-version: 12

- name: cd into /backend
run: cd backend

- name: npm install
run: npm install

- name: gen
run: npm run generate
- name: npm install and gen
working-directory: ./backend
run: |
npm install
npm run generate
- name: test diff
uses: tj-actions/verify-changed-files@v14
id: test-diff
with:
files: |
**/generated-types/*.ts
./backend/**/generated-types/*.ts
- if: steps.test-diff.outputs.files_changed == 'true'
run: |
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12
- name: cd into /backend
run: cd backend
- name: npm install
run: npm install
- name: lint
run: npm run lint
- name: npm install and lint
working-directory: ./backend
run: |
npm install
npm run lint

0 comments on commit f11c1a1

Please sign in to comment.