Skip to content

Commit

Permalink
Merge pull request #2200 from sinonjs/ci-action-performance
Browse files Browse the repository at this point in the history
Ci action performance
  • Loading branch information
fatso83 authored Jan 21, 2020
2 parents 384732e + 78c96e5 commit 9f59015
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9f59015

Please sign in to comment.