Skip to content

Commit 5079aa8

Browse files
authored
Create Playwright test harness (#23)
* added tests * fixed tests * creating a github action to run playwright tests * changed github action * changed github action for playwright tests * changed port for tests * changed name of github action * changed name of test file * changed test name * changed script in readme * changed the test readme file name * updated with recommendations from Fran * updated github action to run on all branches
1 parent 5e45fbb commit 5079aa8

6 files changed

Lines changed: 23671 additions & 10214 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
3+
name: Playwright tests
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request and nightly
8+
push:
9+
pull_request:
10+
schedule:
11+
# nightly
12+
- cron: '0 0 * * *'
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
jobs:
18+
playwright_tests:
19+
# Runs on an ubuntu runner
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
matrix:
24+
node-version: [14.x, 16.x, 18.x]
25+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
26+
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: actions/setup-node@v3
30+
- name: Install dependencies
31+
run: npm ci
32+
- name: Install Playwright
33+
run: npx playwright install --with-deps
34+
- name: Build production build
35+
run: npm run build
36+
- name: Run your tests
37+
run: npm run test

0 commit comments

Comments
 (0)