Skip to content

Add E2E testing

Add E2E testing #14

Workflow file for this run

name: E2E Testing
on:
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-20.04, macos-latest]
name: E2E Testing on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
if: matrix.os == "ubuntu-20.04"

Check failure on line 17 in .github/workflows/e2e.yml

View workflow run for this annotation

GitHub Actions / E2E Testing

Invalid workflow file

The workflow is not valid. .github/workflows/e2e.yml (Line: 17, Col: 13): Unexpected symbol: '"ubuntu-20'. Located at position 14 within expression: matrix.os == "ubuntu-20.04"
run: |
npm ci
sudo apt-get install xvfb
- name: Build for testing
run: npm run build
- name: Run E2E on chrome
run: xvfb-run --server-args="-screen 0, 1400x1000x24" --auto-servernum npm run test:e2e:chrome
- name: Archive test results
if: success() || failure()
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: tmp
path: .tmp
retention-days: 1