Skip to content

Commit aa4e2c0

Browse files
committed
chore: align git workflows with oscd-api
1 parent 5a242e3 commit aa4e2c0

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
name: Test
22
on: [push, pull_request, workflow_dispatch]
33

4-
permissions:
5-
contents: read
6-
74
jobs:
85
test:
96
runs-on: ubuntu-latest
7+
108
steps:
119
- name: Checkout
1210
uses: actions/checkout@v4
1311

1412
- uses: ./.github/actions/setup-node-env
1513

14+
- name: Run ESLint checks
15+
run: npm run-script lint
16+
1617
- name: Build
1718
run: npm run-script build
19+
1820
- name: Run unit tests
1921
run: npm run-script test

0 commit comments

Comments
 (0)