Merge pull request #19 from Mapuppy09/snyk-fix-cc172060cc1b449f95c224… #32
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: Testcafe | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
testcafe: | |
name: Testcafe e2e Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install Packages | |
if: ${{ !contains(github.event.pull_request.title, '[skip test]') }} | |
run: npm ci | |
- name: Build | |
if: ${{ !contains(github.event.pull_request.title, '[skip test]') }} | |
run: npm run build:test | |
- name: Integration - testcafe | |
if: ${{ !contains(github.event.pull_request.title, '[skip test]') }} | |
id: testcafe | |
run: npm run integration:testcafe:ci | |
- name: Upload Artifact | |
if: ${{ failure() && steps.testcafe.outcome == 'failure' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: testcafe-fail-screenshots | |
path: artifacts | |
if-no-files-found: ignore | |
retention-days: 1 |