initial session #375
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 latest node version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- 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 |