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