Skip to content

Commit

Permalink
Add action to ensure that generated files are up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
canac committed Apr 25, 2024
1 parent a5ffd78 commit 6055471
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,30 @@ jobs:
- name: 🔍 Check Dependencies
run: yarn install --immutable --immutable-cache --check-cache

gql-codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.13.0
- name: 📦 Install Dependencies
run: yarn install --immutable --immutable-cache
- name: 🗑️ Delete Generated Files
run: find . -type f -name "*.generated.ts" -delete
- name: 📈 Run GraphQL Codegen
uses: nick-fields/retry@v3
with:
command: yarn gql
timeout_minutes: 1
retry_wait_seconds: 60
max_attempts: 5
- name: 🔍 Check GraphQL Codegen Output
run: git diff --exit-code --name-only

onesky-upload:
runs-on: ubuntu-latest
needs: [test, eslint, typescript, prettier]
needs: [test, eslint, typescript, prettier, gql-codegen]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 6055471

Please sign in to comment.