Skip to content

Commit

Permalink
Merge pull request #115 from bcgov/chore/ci-check-schema-is-up-to-date
Browse files Browse the repository at this point in the history
chore: github action addon to check the schema
  • Loading branch information
matthieu-foucault committed Nov 26, 2021
2 parents 6512517 + 766b64f commit f69aa5f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ jobs:
uses: ./.github/actions/dev-env-setup
- run: yarn audit-deps
working-directory: ./app
db-schema-is-up-to-date:
needs: install-dev-tools
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: dev env setup
uses: ./.github/actions/dev-env-setup
- run: make deploy_db_migrations
- run: yarn build:schema
working-directory: ./app
- run: git diff --exit-code || (echo 'The contents of the `schema` folder are out of sync with `app/server/schema.graphql`. Did you forget to \"yarn build:schema\"?' && false)
db-unit-tests:
needs: install-dev-tools
runs-on: ubuntu-latest
Expand Down

0 comments on commit f69aa5f

Please sign in to comment.