-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1d19a8
commit 7b2e9c6
Showing
2 changed files
with
67 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: E2E Test | ||
|
||
on: | ||
merge_group: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
- chore/github-actions | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
env: | ||
NODE_VERSION: 18 | ||
CACHE_KEY: '${{ github.ref }}-${{ github.run_id }}-${{ github.run_attempt }}' | ||
|
||
jobs: | ||
sample-01: | ||
name: E2E Test Sample | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
|
||
- run: git clone https://github.com/auth0-samples/spa-quickstarts-tests scripts | ||
|
||
- name: E2E Test Sample | ||
uses: ./.github/actions/test | ||
with: | ||
working-directory: Sample-01 | ||
domain: ${{ secrets.AUTH0_TEST_DOMAIN }} | ||
client-id: ${{ secrets.AUTH0_TEST_CLIENT_ID }} | ||
api-identifier: ${{ secrets.AUTH0_TEST_API_IDENTIFIER }} | ||
|
||
standalone: | ||
name: E2E Test Standalone | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
|
||
- run: git clone https://github.com/auth0-samples/spa-quickstarts-tests scripts | ||
|
||
- name: E2E Test Standalone | ||
uses: ./.github/actions/test | ||
with: | ||
working-directory: Standalone | ||
domain: ${{ secrets.AUTH0_TEST_DOMAIN }} | ||
client-id: ${{ secrets.AUTH0_TEST_CLIENT_ID }} | ||
api-identifier: ${{ secrets.AUTH0_TEST_API_IDENTIFIER }} | ||
|
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