mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 00:58:36 +00:00
ci: skip schema-check if hive token isn't available (#372)
This commit is contained in:
parent
aca8170421
commit
6f0493dec4
1 changed files with 9 additions and 0 deletions
9
.github/workflows/ci.yaml
vendored
9
.github/workflows/ci.yaml
vendored
|
|
@ -21,11 +21,15 @@ jobs:
|
|||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
|
||||
outputs:
|
||||
hive_token_present: ${{ steps.secrets_present.outputs.hive_token }}
|
||||
|
||||
env:
|
||||
POSTGRES_HOST: localhost
|
||||
POSTGRES_PORT: 5432
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_USER: postgres
|
||||
HIVE_TOKEN: ${{ secrets.HIVE_TOKEN }}
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
TURBO_API_URL: ${{ secrets.TURBO_API_URL }}
|
||||
|
|
@ -67,6 +71,10 @@ jobs:
|
|||
path: '**/node_modules'
|
||||
key: ${{ github.sha }}
|
||||
|
||||
- name: Check for Presence of Repository Secrets
|
||||
id: secrets_present
|
||||
run: echo "::set-output name=hive_token::${{ env.HIVE_TOKEN != '' }}"
|
||||
|
||||
integration-tests:
|
||||
name: Integration Tests
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -192,6 +200,7 @@ jobs:
|
|||
name: Schema Check
|
||||
runs-on: ubuntu-latest
|
||||
needs: setup
|
||||
if: needs.setup.outputs.hive_token_present == 'true'
|
||||
timeout-minutes: 5
|
||||
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in a new issue