Update integration.yml #62
Workflow file for this run
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: Integration Tests | |
on: | |
# merge_group: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
# push: | |
# branches: | |
# - main | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
env: | |
NODE_VERSION: 18 | |
# Mock user credentials for Cypress tests | |
CYPRESS_USER_EMAIL: [email protected] | |
CYPRESS_USER_PASSWORD: mockpassword | |
jobs: | |
test-examples: | |
name: Run example tests | |
runs-on: ubuntu-latest | |
env: | |
SKIP_PREFLIGHT_CHECK: true | |
REACT_APP_DOMAIN: your-tenant.auth0.com | |
REACT_APP_CLIENT_ID: yourclientid | |
REACT_APP_AUDIENCE: https://api.example.com/users | |
GATSBY_DOMAIN: your-tenant.auth0.com | |
GATSBY_CLIENT_ID: yourclientid | |
GATSBY_AUDIENCE: https://api.example.com/users | |
NEXT_PUBLIC_DOMAIN: your-tenant.auth0.com | |
NEXT_PUBLIC_CLIENT_ID: yourclientid | |
NEXT_PUBLIC_AUDIENCE: https://api.example.com/users | |
DOMAIN: your-tenant.auth0.com | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm ci | |
- name: Install examples | |
run: npm run install:examples | |
- name: Run integration test | |
run: npm run test:integration |