Skip to content

Commit

Permalink
Update integration.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Sep 7, 2023
1 parent 83b23cf commit 5fb284e
Showing 1 changed file with 32 additions and 19 deletions.
51 changes: 32 additions & 19 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@ env:
DOMAIN: your-tenant.auth0.com
AUDIENCE: https://api.example.com/users
PORT: 3001
NEXT_PUBLIC_DOMAIN: your-tenant.auth0.com
NEXT_PUBLIC_CLIENT_ID: yourclientid
NEXT_PUBLIC_AUDIENCE: https://api.example.com/users
NEXT_PUBLIC_API_PORT: 3001
GATSBY_DOMAIN: your-tenant.auth0.com
GATSBY_CLIENT_ID: yourclientid
GATSBY_AUDIENCE: https://api.example.com/users
GATSBY_API_PORT: 3001
SKIP_PREFLIGHT_CHECK: true
REACT_APP_DOMAIN: your-tenant.auth0.com
REACT_APP_CLIENT_ID: yourclientid
REACT_APP_AUDIENCE: https://api.example.com/users
REACT_APP_API_PORT: 3001

jobs:
integration:
Expand All @@ -50,11 +37,37 @@ jobs:
with:
node: ${{ env.NODE_VERSION }}

- name: Install test dependencies
run: npm run install:examples
- name: Install dependencies
run: |
npm ci --prefix=examples/users-api
- name: Run tests
run: npm run test
- name: Run CRA integration tests
run: |
npm i --prefix=examples/cra-react-router --no-package-lock --legacy-peer-deps
npm run test:cra
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
REACT_APP_API_PORT: 3001

- name: Run integration tests
run: npm run test:integration
- name: Run Gatsby integration tests
run: |
npm i --prefix=examples/gatsby-app --no-package-lock --legacy-peer-deps
npm run test:gatsby
env:
GATSBY_DOMAIN: your-tenant.auth0.com
GATSBY_CLIENT_ID: yourclientid
GATSBY_AUDIENCE: https://api.example.com/users
GATSBY_API_PORT: 3001

- name: Run NextJS integration tests
run: |
npm i --prefix=examples/nextjs-app --no-package-lock --legacy-peer-deps
npm run test:nextjs
env:
NEXT_PUBLIC_DOMAIN: your-tenant.auth0.com
NEXT_PUBLIC_CLIENT_ID: yourclientid
NEXT_PUBLIC_AUDIENCE: https://api.example.com/users
NEXT_PUBLIC_API_PORT: 3001

0 comments on commit 5fb284e

Please sign in to comment.