Skip to content

Commit ceece38

Browse files
committed
Update GitHub Actions scripts
1 parent bd2d3ab commit ceece38

2 files changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# https://github.com/actions/starter-workflows/blob/c934669ce246e6d64e54006b714b04199cbe445b/ci/node.js.yml
1+
# https://github.com/actions/starter-workflows/blob/432e3e3e741760610382c82fb0e909ff700496f7/ci/node.js.yml
22

33
name: Node.js CI
44

@@ -9,25 +9,22 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111

12-
# https://github.com/arjun27/playwright-github-actions
13-
container: arjun27/playwright-bionic:0.2.0
14-
1512
strategy:
1613
matrix:
1714
node-version: [16.x]
1815

1916
steps:
2017
- uses: actions/checkout@v2
2118
- name: Use Node.js ${{matrix.node-version}}
22-
uses: actions/setup-node@v1
19+
uses: actions/setup-node@v2
2320
with:
2421
node-version: ${{matrix.node-version}}
22+
cache: 'npm'
2523
- run: npm ci
24+
- run: npx playwright install --with-deps
2625
- run: npm run build
2726
- run: npm run npm:install:examples
2827
- run: npm run build:examples
2928
- run: npm run lint
3029
- run: npm run test:coverage
3130
- run: npm run test:examples
32-
env:
33-
CI: true

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# https://github.com/actions/starter-workflows/blob/c934669ce246e6d64e54006b714b04199cbe445b/ci/npm-publish.yml
1+
# https://github.com/actions/starter-workflows/blob/432e3e3e741760610382c82fb0e909ff700496f7/ci/npm-publish.yml
22

33
name: Node.js Package
44

@@ -9,16 +9,13 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
13-
# https://github.com/arjun27/playwright-github-actions
14-
container: arjun27/playwright-bionic:0.2.0
15-
1612
steps:
1713
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v1
14+
- uses: actions/setup-node@v2
1915
with:
20-
node-version: 12
16+
node-version: 16
2117
- run: npm ci
18+
- run: npx playwright install --with-deps
2219
- run: npm run build
2320
- run: npm run npm:install:examples
2421
- run: npm run build:examples
@@ -31,9 +28,9 @@ jobs:
3128
runs-on: ubuntu-latest
3229
steps:
3330
- uses: actions/checkout@v2
34-
- uses: actions/setup-node@v1
31+
- uses: actions/setup-node@v2
3532
with:
36-
node-version: 12
33+
node-version: 16
3734
registry-url: https://registry.npmjs.org/
3835
- run: npm ci
3936
- run: npm publish

0 commit comments

Comments
 (0)