Skip to content

Commit 95f9192

Browse files
stee-reca-d
authored andcommitted
ci: use playwright container for testing
1 parent de6ed66 commit 95f9192

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

.github/actions/setup-node-env/action.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,7 @@ runs:
2424
node_modules
2525
key: modules-${{ hashFiles('package-lock.json') }}
2626

27-
- name: Cache Playwright Binaries
28-
id: cache-playwright
29-
uses: actions/cache@v4
30-
with:
31-
path: |
32-
~/.cache/ms-playwright
33-
key: playwright-${{ hashFiles('package-lock.json') }}
34-
3527
- name: Install dependencies
3628
if: steps.cache-node-modules.outputs.cache-hit != 'true'
3729
run: npm ci
3830
shell: bash
39-
40-
- name: Install playwright browsers
41-
if: steps.cache-playwright.outputs.cache-hit != 'true'
42-
run: npx playwright install --with-deps
43-
shell: bash
44-
45-
- name: Install system dependencies for WebKit
46-
# Some WebKit dependencies seem to lay outside the cache and will need to be installed separately
47-
if: steps.cache-playwright.outputs.cache-hit == 'true'
48-
run: npx playwright install-deps webkit
49-
shell: bash

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@ on: [push, pull_request, workflow_dispatch]
44
jobs:
55
test:
66
runs-on: ubuntu-latest
7+
78
steps:
9+
- name: Set CHROME_PATH
10+
run: echo "CHROME_PATH=/ms-playwright/chrome-linux/chrome" >> $GITHUB_ENV
11+
812
- name: Checkout
913
uses: actions/checkout@v4
1014

1115
- uses: ./.github/actions/setup-node-env
1216

17+
- name: Run ESLint checks
18+
run: npm run-script lint
19+
1320
- name: Build
1421
run: npm run-script build
1522

0 commit comments

Comments
 (0)