ci: skip schema-check if hive token isn't available (#372)

This commit is contained in:
Ryan Perry-Nguyen 2022-09-16 06:41:11 -04:00 committed by GitHub
parent aca8170421
commit 6f0493dec4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: