adding dev-v16.3.0 tag to this commit to ensure building #39
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 edge function compatibility" | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.netlify_auth_token }} | |
NETLIFY_SITE_ID: ${{ secrets.netlify_site_id }} | |
TEST_DEPLOYED_VERSION: true | |
defaults: | |
run: | |
working-directory: examples/next/with-emailpassword | |
steps: | |
- uses: actions/checkout@v2 | |
- run: echo $GITHUB_REF_NAME | |
- 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: netlify deploy --alias 0 --build --json --auth=$NETLIFY_AUTH_TOKEN > deployInfo.json | |
- run: cat deployInfo.json | |
- run: | | |
( \ | |
(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 |