mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
ci: remove duplicate and redundant steps (#11009)
This commit is contained in:
parent
25eca9a747
commit
5081094657
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -41,6 +41,8 @@ jobs:
|
|||||||
run: npm run validate-licenses
|
run: npm run validate-licenses
|
||||||
- name: Build every package
|
- name: Build every package
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
- name: Tests types
|
||||||
|
run: npm run test-types
|
||||||
- name: Lint code
|
- name: Lint code
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
- name: Generate documents
|
- name: Generate documents
|
||||||
@ -191,16 +193,11 @@ jobs:
|
|||||||
if: ${{ matrix.suite == 'chrome-bidi' }}
|
if: ${{ matrix.suite == 'chrome-bidi' }}
|
||||||
id: browser
|
id: browser
|
||||||
run: node tools/download_chrome_bidi.mjs ~/.cache/puppeteer/chrome-canary
|
run: node tools/download_chrome_bidi.mjs ~/.cache/puppeteer/chrome-canary
|
||||||
- name: Tests types
|
|
||||||
run: npm run test-types
|
|
||||||
- name: Run all tests (for non-Linux)
|
- name: Run all tests (for non-Linux)
|
||||||
if: ${{ matrix.os != 'ubuntu-latest' }}
|
if: ${{ matrix.os != 'ubuntu-latest' }}
|
||||||
run: npm run test -- --test-suite ${{ matrix.suite }} --save-stats-to /tmp/artifacts/${{ github.event_name }}_INSERTID.json
|
run: npm run test -- --test-suite ${{ matrix.suite }} --save-stats-to /tmp/artifacts/${{ github.event_name }}_INSERTID.json
|
||||||
env:
|
env:
|
||||||
PUPPETEER_EXECUTABLE_PATH: ${{ steps.browser.outputs.executablePath }}
|
PUPPETEER_EXECUTABLE_PATH: ${{ steps.browser.outputs.executablePath }}
|
||||||
- name: Install linux dependencies.
|
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
||||||
run: sudo apt-get install xvfb
|
|
||||||
- name: Run all tests (for Linux)
|
- name: Run all tests (for Linux)
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
run: xvfb-run --auto-servernum npm run test -- --test-suite ${{ matrix.suite }} --save-stats-to /tmp/artifacts/${{ github.event_name }}_INSERTID.json
|
run: xvfb-run --auto-servernum npm run test -- --test-suite ${{ matrix.suite }} --save-stats-to /tmp/artifacts/${{ github.event_name }}_INSERTID.json
|
||||||
@ -269,14 +266,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PUPPETEER_PRODUCT: firefox
|
PUPPETEER_PRODUCT: firefox
|
||||||
run: npm run postinstall
|
run: npm run postinstall
|
||||||
- name: Tests types
|
|
||||||
run: npm run test-types
|
|
||||||
- name: Run all tests (for non-Linux)
|
- name: Run all tests (for non-Linux)
|
||||||
if: ${{ matrix.os != 'ubuntu-latest' }}
|
if: ${{ matrix.os != 'ubuntu-latest' }}
|
||||||
run: npm run test -- --test-suite ${{ matrix.suite }} --save-stats-to /tmp/artifacts/${{ github.event_name }}_INSERTID.json
|
run: npm run test -- --test-suite ${{ matrix.suite }} --save-stats-to /tmp/artifacts/${{ github.event_name }}_INSERTID.json
|
||||||
- name: Install linux dependencies.
|
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
||||||
run: sudo apt-get install xvfb
|
|
||||||
- name: Run all tests (for Linux)
|
- name: Run all tests (for Linux)
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
run: xvfb-run --auto-servernum npm run test -- --test-suite ${{ matrix.suite }} --save-stats-to /tmp/artifacts/${{ github.event_name }}_INSERTID.json
|
run: xvfb-run --auto-servernum npm run test -- --test-suite ${{ matrix.suite }} --save-stats-to /tmp/artifacts/${{ github.event_name }}_INSERTID.json
|
||||||
|
Loading…
Reference in New Issue
Block a user