Update docker dependencies #6126
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: Check generated resources | |
on: | |
pull_request: | |
jobs: | |
check_generated_graphql_schema: | |
name: Check if the generated graphql schema is up to date | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Start e2e env | |
uses: HSLdevcom/jore4-tools/github-actions/setup-e2e-environment@setup-e2e-environment-v7 | |
with: | |
custom_docker_compose: ./docker/docker-compose.custom.yml | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.19.0' | |
cache: 'yarn' | |
- name: Install node_modules | |
# making sure that we do have the proper set of node_modules installed regardless of what's cached | |
run: yarn install --frozen-lockfile | |
- name: Wait for Hasura to be available | |
uses: HSLdevcom/jore4-tools/github-actions/healthcheck@healthcheck-v1 | |
with: | |
command: 'curl --fail http://localhost:3201/healthz --output /dev/null --silent' | |
# hasura takes time to start up as it depends on the database | |
retries: 50 | |
- name: Regenerate schemas | |
run: yarn ws:codegen generate | |
- name: Verify that generate command made no changes, so schema is up to date | |
run: '[ -z "$(git status --porcelain)" ]' |