1
0
mirror of synced 2026-01-07 18:01:41 -05:00

run browser-test.yml like pa11y.yml

This commit is contained in:
Mike Surowiec
2021-05-20 14:09:14 -07:00
parent 7d1090fcee
commit 488dd4d202

View File

@@ -25,14 +25,21 @@ jobs:
with:
node-version: 16.x
- name: Install
uses: rachmari/puppeteer-container@6d56d6e132a3df76cf60bc290a4282f7fbaed05e
timeout-minutes: 5
with:
args: npm ci
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Test
timeout-minutes: 10
uses: rachmari/puppeteer-container@6d56d6e132a3df76cf60bc290a4282f7fbaed05e
- name: Cache node modules
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
with:
args: npm run browser-test
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Run brower-test
run: npm run browser-test