Skip to content

Fix the test code to work. #6

Fix the test code to work.

Fix the test code to work. #6

name: Test GraphQL GCP Integration
on:
push:
paths:
- "graphql/**"
- ".github/workflows/**"
pull_request:
paths:
- "graphql/**"
- ".github/workflows/**"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.WILDFLOW_BIGQUERY_TEST_SA }}
- name: Set up GCP SDK
uses: google-github-actions/setup-gcloud@v2
- name: Get GCP Access Bearer Token
run: |
echo "Getting GCP Access Token..."
GCP_ACCESS_TOKEN=$(gcloud auth application-default print-access-token)
echo "GCP_ACCESS_TOKEN=${GCP_ACCESS_TOKEN}" >> $GITHUB_ENV
- name: Run Tests
run: |
cd graphql
cargo test
env:
GCP_ACCESS_TOKEN: ${{ env.GCP_ACCESS_TOKEN }}
WILDFLOW_BIGQUERY_TEST_PROJECT: ${{ vars.WILDFLOW_BIGQUERY_TEST_PROJECT }}