Skip to content

Commit

Permalink
Cache puppeteer download
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheid committed Aug 2, 2021
1 parent b20961f commit e5ccea1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Set environmental variables"
run: |
echo "PUPPETEER_DOWNLOAD_PATH=$HOME/puppeteer" >> $GITHUB_ENV
- run: sudo apt-get install -y moreutils
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -28,5 +32,11 @@ jobs:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}

- uses: actions/cache@v2
id: puppeteer-cache
with:
path: ${{ env.PUPPETEER_DOWNLOAD_PATH }}
key: ${{ runner.os }}-puppeteer-${{ hashFiles('**/yarn.lock') }}

- run: yarn
- run: yarn test:smoke

0 comments on commit e5ccea1

Please sign in to comment.