Test: fix e2e tests #5
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 Enjoy App | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "enjoy/**/*.ts" | |
- "enjoy/**/*.tsx" | |
- "enjoy/**/*.js" | |
- "enjoy/**/*.mjs" | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
[ | |
macos-11, | |
macos-12, | |
macos-13, | |
macos-14, | |
windows-2019, | |
windows-latest, | |
ubuntu-latest, | |
] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install -g yarn && yarn | |
- if: matrix.os == 'ubuntu-latest' | |
name: Run tests with xvfb-run | |
run: | | |
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn test:enjoy | |
- if: matrix.os != 'ubuntu-latest' | |
name: Run tests | |
run: yarn test:enjoy | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |