From e5ccea184ea0621acbd2e6240931555c5dda4544 Mon Sep 17 00:00:00 2001 From: Julian Scheid Date: Tue, 3 Aug 2021 01:30:37 +1200 Subject: [PATCH] Cache puppeteer download --- .github/workflows/compat.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/compat.yml b/.github/workflows/compat.yml index 0587782..9f13b50 100644 --- a/.github/workflows/compat.yml +++ b/.github/workflows/compat.yml @@ -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 @@ -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