From 488dd4d2026ca3d5408f12540e9a9537a52f4867 Mon Sep 17 00:00:00 2001 From: Mike Surowiec Date: Thu, 20 May 2021 14:09:14 -0700 Subject: [PATCH] run browser-test.yml like pa11y.yml --- .github/workflows/browser-test.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/browser-test.yml b/.github/workflows/browser-test.yml index d3794e124f..144813fdd6 100644 --- a/.github/workflows/browser-test.yml +++ b/.github/workflows/browser-test.yml @@ -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