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 551945a commit e004f1c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,33 @@ env:
DOMAIN: your-tenant.auth0.com
AUDIENCE: https://api.example.com/users
PORT: 3001
CYPRESS_USER_EMAIL: [email protected]
CYPRESS_USER_PASSWORD: mockpassword

jobs:
test-cra:
name: Run cra-react-router tests
name: cra-react-router
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Prepare integration test
- name: Prepare environment
uses: ./.github/actions/integration
with:
integration: 'cra-react-router'
node: ${{ env.NODE_VERSION }}

- name: RUn Cypress integration test
- name: Run Cypress integration test
uses: cypress-io/github-action@v6
with:
spec: cypress/integration/smoke.test.ts
install: false
build: npm run build
start: |
npm run start --prefix=examples/users-api --port 3001
npm run start --prefix=examples/cra-react-router --port 3000
npm start --prefix=examples/users-api
npm start --prefix=examples/cra-react-router
env:
SKIP_PREFLIGHT_CHECK: true
REACT_APP_DOMAIN: your-tenant.auth0.com
Expand Down

0 comments on commit e004f1c

Please sign in to comment.