-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release/v2.2.2
Signed-off-by: Frederik Prijck <[email protected]>
- Loading branch information
Showing
35 changed files
with
648 additions
and
674 deletions.
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: "daily" | ||
interval: 'daily' | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major"] |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,76 @@ | ||
name: Integration Tests | ||
|
||
on: | ||
# merge_group: | ||
merge_group: | ||
workflow_dispatch: | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# push: | ||
# branches: | ||
# - master | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || 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-react-router: | ||
name: Run react-router 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 | ||
REACT_APP_API_PORT: 3001 | ||
|
||
authorize: | ||
name: Authorize | ||
environment: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- run: true | ||
|
||
- name: Run integration test | ||
uses: ./.github/actions/integration | ||
with: | ||
integration: 'cra-react-router' | ||
node: ${{ env.NODE_VERSION }} | ||
|
||
test-gatsby: | ||
name: Run Gatsby tests | ||
test-examples: | ||
needs: authorize # Require approval before running on forked pull requests | ||
name: Run example tests | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
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 | ||
CYPRESS_USER_EMAIL: ${{secrets.CYPRESS_USER_EMAIL}} | ||
CYPRESS_USER_PASSWORD: ${{secrets.CYPRESS_USER_PASSWORD}} | ||
REACT_APP_DOMAIN: ${{secrets.TEST_DOMAIN}} | ||
REACT_APP_CLIENT_ID: ${{secrets.TEST_CLIENT_ID}} | ||
REACT_APP_AUDIENCE: ${{secrets.TEST_AUDIENCE}} | ||
GATSBY_DOMAIN: ${{secrets.TEST_DOMAIN}} | ||
GATSBY_CLIENT_ID: ${{secrets.TEST_CLIENT_ID}} | ||
GATSBY_AUDIENCE: ${{secrets.TEST_AUDIENCE}} | ||
NEXT_PUBLIC_DOMAIN: ${{secrets.TEST_DOMAIN}} | ||
NEXT_PUBLIC_CLIENT_ID: ${{secrets.TEST_CLIENT_ID}} | ||
NEXT_PUBLIC_AUDIENCE: ${{secrets.TEST_AUDIENCE}} | ||
DOMAIN: ${{secrets.TEST_DOMAIN}} | ||
AUDIENCE: ${{secrets.TEST_AUDIENCE}} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run integration test | ||
uses: ./.github/actions/integration | ||
with: | ||
integration: 'gatsby-app' | ||
node: ${{ env.NODE_VERSION }} | ||
dotenv: '.env.development.sample' | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
|
||
test-nextjs: | ||
name: Run NextJS tests | ||
runs-on: ubuntu-latest | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
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 | ||
- name: Build SDK | ||
run: npm run build | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install examples | ||
run: npm run install:examples | ||
|
||
- name: Run integration test | ||
uses: ./.github/actions/integration | ||
with: | ||
integration: 'nextjs-app' | ||
node: ${{ env.NODE_VERSION }} | ||
- name: Run integration test (CRA) | ||
run: npm run test:cra | ||
|
||
- name: Run integration test (NextJS) | ||
run: npm run test:nextjs | ||
|
||
- name: Run integration test (Gatsby) | ||
run: npm run test:gatsby |
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
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
Oops, something went wrong.