diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index d5646fb49..a4d99aa7b 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -41,9 +41,19 @@ jobs: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} + env: + PUPPETEER_DOWNLOAD_PATH: ~/.puppeteer_download steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + if: ${{ runner.os != 'Windows' }} + with: + path: | + ~/.npm + ~/.puppeteer_download + key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} + - name: Use Node.js ${{ matrix.node }} uses: actions/setup-node@v2 with: @@ -57,9 +67,17 @@ jobs: sm-test: name: SpiderMonkey runs-on: ubuntu-20.04 + env: + PUPPETEER_DOWNLOAD_PATH: ~/.puppeteer_download steps: - uses: actions/checkout@v2 - - name: Use Node.js 10.x + - uses: actions/cache@v2 + with: + path: | + ~/.npm + ~/.puppeteer_download + key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} + - name: Use Node.js 10 uses: actions/setup-node@v2 with: node-version: 10.x diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index c016e0ece..21230f120 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -6,10 +6,19 @@ jobs: run: name: Code coverage runs-on: ubuntu-20.04 + env: + PUPPETEER_DOWNLOAD_PATH: ~/.puppeteer_download steps: - uses: actions/checkout@v2 - - name: Use Node.js 10.x + - uses: actions/cache@v2 + with: + path: | + ~/.npm + ~/.puppeteer_download + key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} + + - name: Use Node.js 10 uses: actions/setup-node@v2 with: node-version: 10.x