-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c46348e
commit a119309
Showing
1 changed file
with
32 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,13 +24,13 @@ jobs: | |
matrix: | ||
node: | ||
- 16 | ||
- 14 | ||
- 12 | ||
- 10 | ||
# - 14 | ||
# - 12 | ||
# - 10 | ||
puppeteer_version: | ||
- 13.1.0 # 2022-01-17 - Chromium 98.0.4758.0 | ||
# - 10.0.0 # 2021-05-31 - Chromium 92.0.4512.0 | ||
- 9.1.1 # (2021-02-04) - Types: PuppeteerNodeLaunchOptions introduced | ||
# - 9.1.1 # (2021-02-04) - Types: PuppeteerNodeLaunchOptions introduced | ||
# - 7.0.1 # (2021-02-04) - First version to ship TypeScript as part of package | ||
# - 5.5.0 # 2020-07-02 - Chromium 88.0.4298.0 | ||
# - 1.6.2 # 2018-08-01 - Chromium 69.0.3494.0 | ||
|
@@ -43,41 +43,41 @@ jobs: | |
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: npm ci | ||
- name: CI Install | ||
uses: bahmutov/npm-install@v1 # basically npm ci with a cache | ||
- run: npm install puppeteer@${{ matrix.puppeteer_version }} | ||
- run: yarn add puppeteer@${{ matrix.puppeteer_version }} | ||
# - run: npm test | ||
- run: npm run coverage | ||
- run: yarn run coverage | ||
- name: Collect coverage | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
flag-name: run_node-v${{ matrix.node }}_pptr-${{ matrix.puppeteer_version }}_os-${{ matrix.os }} | ||
parallel: true | ||
|
||
report-coverage: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Report coverage | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel-finished: true | ||
# report-coverage: | ||
# needs: test | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Report coverage | ||
# uses: coverallsapp/[email protected] | ||
# with: | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# parallel-finished: true | ||
|
||
publish: | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
needs: report-coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: npm ci | ||
uses: bahmutov/npm-install@v1 | ||
- run: npm run build | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_TOKEN }} | ||
# publish: | ||
# if: github.event_name == 'release' && github.event.action == 'created' | ||
# needs: report-coverage | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: 16 | ||
# registry-url: https://registry.npmjs.org/ | ||
# - name: npm ci | ||
# uses: bahmutov/npm-install@v1 | ||
# - run: npm run build | ||
# - run: npm publish | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_TOKEN }} |