File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
33name : Node.js CI
44
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
Original file line number Diff line number Diff line change 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
33name : Node.js Package
44
99jobs :
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
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
You can’t perform that action at this time.
0 commit comments