Skip to content

Commit

Permalink
update github actions from old repo configs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Apr 10, 2024
1 parent cd3541f commit f01d768
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 33 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/gen.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name:
Codegen Test
name: Codegen Test

on:
push:
Expand All @@ -9,28 +8,30 @@ jobs:
Codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: install node v12
uses: actions/setup-node@v1
with:
node-version: 12
- name: install node v12
uses: actions/setup-node@v1
with:
node-version: 12

- name: npm install
run: npm install
- name: cd into /backend
run: cd backend

- name: gen
run: npm run generate
- name: npm install
run: npm install

- name: test diff
uses: tj-actions/verify-changed-files@v14
id: test-diff
with:
files: |
**/generated-types/*.ts
- name: gen
run: npm run generate

- if: steps.test-diff.outputs.files_changed == 'true'
run: |
echo "Run 'npm run generate' to fix!"
exit 1
- name: test diff
uses: tj-actions/verify-changed-files@v14
id: test-diff
with:
files: |
**/generated-types/*.ts
- if: steps.test-diff.outputs.files_changed == 'true'
run: |
echo "Run 'npm run generate' to fix!"
exit 1
25 changes: 13 additions & 12 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name:
Linting

name: Linting

on:
push:
pull_request:
Expand All @@ -9,12 +8,14 @@ jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install node v12
uses: actions/setup-node@v1
with:
node-version: 12
- name: npm install
run: npm install
- name: lint
run: npm run lint
- uses: actions/checkout@v1
- name: install node v12
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

0 comments on commit f01d768

Please sign in to comment.