fix: fix how we check the MFA claim in removeDevice #2311
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: "Test examples" | |
on: push | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v2 | |
- run: bash test/findExamplesWithTests.sh | |
- id: set-matrix | |
run: echo "::set-output name=matrix::{\"include\":$(bash test/findExamplesWithTests.sh)}" | |
test: | |
needs: setup | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: ${{fromJson(needs.setup.outputs.matrix)}} | |
fail-fast: false | |
env: | |
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.example_testing_supabase_public_url }} | |
NEXT_PUBLIC_SUPABASE_KEY: ${{ secrets.example_testing_supabase_public_key }} | |
SUPABASE_SIGNING_SECRET: ${{ secrets.example_testing_supabase_signing_secret }} | |
LAMBDA_FUNCTION_NAME: ${{ secrets.aws_function_name }} | |
defaults: | |
run: | |
working-directory: ${{ matrix.examplePath }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
role-duration-seconds: 1200 | |
role-session-name: Github-action | |
- run: echo $GITHUB_SHA | |
- run: npm install git+https://github.com:supertokens/supertokens-node.git#$GITHUB_SHA | |
- run: npm install | |
- run: npm install [email protected] [email protected] puppeteer@^11.0.0 isomorphic-fetch@^3.0.0 | |
- run: npm run build || true | |
- run: | | |
(HOST= npm start & bash ${GITHUB_WORKSPACE}/test/waitForServerStartup.sh) && ( \ | |
(echo "=========== Test attempt 1 ===========" && npx mocha --no-config --timeout 80000 test/**/*.test.js) || \ | |
(echo "=========== Test attempt 2 ===========" && npx mocha --no-config --timeout 80000 test/**/*.test.js) || \ | |
(echo "=========== Test attempt 3 ===========" && npx mocha --no-config --timeout 80000 test/**/*.test.js) \ | |
) | |
- name: The job has failed | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: screenshots | |
path: ./**/*screenshot.jpeg |