diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f8965d0b..e15465488 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,13 +16,24 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - name: Cache modules + uses: actions/cache@v1 + with: + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + ${{ runner.OS }}- - run: npm ci + env: + PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1 - name: Pre-Test run: | npm run lint - npm run test-headless -- --chrome $(which google-chrome-stable) --allow-chrome-as-root - npm run test-webworker -- --chrome $(which google-chrome-stable) --allow-chrome-as-root + export SINON_CHROME_BIN=$(which google-chrome-stable) + npm run test-headless -- --chrome $SINON_CHROME_BIN --allow-chrome-as-root + npm run test-webworker -- --chrome $SINON_CHROME_BIN --allow-chrome-as-root npm run test-esm-bundle if: matrix.node-version == 10