Skip to content

Commit f630cb6

Browse files
authored
Add a test (#33)
* got code sample running and added a test * got code sample running and added a test * trying to get the lint git action working * trying to get the lint git action working * trying to get the test git action working * updated with recommendations from Fran * updated github action to run on all branches
1 parent 5c7176f commit f630cb6

File tree

5 files changed

+163
-155
lines changed

5 files changed

+163
-155
lines changed

.github/workflows/playwright.js.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
name: Playwright tests
55

66
on:
7+
# Runs on push or pull requests and nightly
78
push:
8-
branches: [ main ]
99
pull_request:
10-
branches: [ main ]
1110
schedule:
1211
# nightly
1312
- cron: '0 0 * * *'
@@ -18,19 +17,17 @@ jobs:
1817

1918
strategy:
2019
matrix:
21-
node-version: [14.x, 16.x]
20+
node-version: [14.x, 16.x, 18.x]
2221
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2322

2423
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v2
27-
with:
28-
node-version: '14'
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-node@v3
2926
- name: Install dependencies
3027
run: npm ci
3128
- name: Install Playwright
3229
run: npx playwright install --with-deps
3330
- name: Build production build
3431
run: npm run build
3532
- name: Run your tests
36-
run: npm run test
33+
run: npm run test

.prettierrc.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{
2-
"singleQuote": true,
3-
"tabWidth": 2,
4-
"semi": true
1+
{
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"semi": true
55
}

0 commit comments

Comments
 (0)