new infra (#715) #239
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codegen Test | |
on: | |
push: | |
pull_request: | |
jobs: | |
Codegen: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install node v12 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- 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: | | |
./backend/**/generated-types/*.ts | |
- if: steps.test-diff.outputs.files_changed == 'true' | |
run: | | |
echo "Run 'npm run generate' to fix!" | |
exit 1 |