Skip to content

Tallangroberg/initial testing #7

Tallangroberg/initial testing

Tallangroberg/initial testing #7

Workflow file for this run

name: End To End Tests
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
workflow_dispatch:
jobs:
run-e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '18.x'
- name: Cache Dependencies
uses: actions/cache@v2
id: npm-cache
with:
path: node_modules
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install Dependencies
run: npm i
- name: Setup Puppeteer Chrome
uses: MauFournier/[email protected]
- name: Setup Xvfb
run: sudo apt-get install -y xvfb
- name: Run end to end tests
run: xvfb-run --auto-servernum --server-args='-screen 0 1024x768x24' npm run test-e2e