Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5675ba0

Browse files
Create Playwright test harness (#29)
* created a github action * deleted extra file * changed command to run test in github actions * changed playwright config file * changed git action * changing github action * Update playwright.yml * Update playwright.yml * add start script to package.json file * added to github action * fixed syntac error in github action * added test readme file * updated with recommendations from Fran * changed github action to run on all branches
1 parent 1334425 commit 5675ba0

File tree

8 files changed

+14960
-102
lines changed

8 files changed

+14960
-102
lines changed

‎.github/workflows/playwright.yml

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

‎.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ yarn-error.log*
1818
*.ntvs*
1919
*.njsproj
2020
*.sln
21-
*.sw?
21+
*.sw?
22+
/test-results/
23+
/playwright-report/
24+
/playwright/.cache/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /