feat: Enable DDM (#56) #96
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: Tests | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
env: | |
PLAYWRIGHT_BROWSERS_PATH: 0 # Places binaries to node_modules/@playwright/test | |
jobs: | |
test: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Remove the player | |
run: rm -rf player | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps chromium | |
- name: Install the application | |
run: npm run build | |
- name: Run Jest tests | |
run: npm run test | |
- name: Run Playwright tests | |
run: npm run test-playwright | |
- if: ${{ failure() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: snapshot diffs | |
path: tests/__image_snapshots__ |