Skip to content

Commit

Permalink
ci: remove duplicate and redundant steps (#11009)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Sep 22, 2023
1 parent 25eca9a commit 5081094
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -41,6 +41,8 @@ jobs:
run: npm run validate-licenses
- name: Build every package
run: npm run build
- name: Tests types
run: npm run test-types
- name: Lint code
run: npm run lint
- name: Generate documents
Expand Down Expand Up @@ -191,16 +193,11 @@ jobs:
if: ${{ matrix.suite == 'chrome-bidi' }}
id: browser
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)
if: ${{ matrix.os != 'ubuntu-latest' }}
run: npm run test -- --test-suite ${{ matrix.suite }} --save-stats-to /tmp/artifacts/${{ github.event_name }}_INSERTID.json
env:
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)
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
Expand Down Expand Up @@ -269,14 +266,9 @@ jobs:
env:
PUPPETEER_PRODUCT: firefox
run: npm run postinstall
- name: Tests types
run: npm run test-types
- name: Run all tests (for non-Linux)
if: ${{ matrix.os != 'ubuntu-latest' }}
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)
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
Expand Down

0 comments on commit 5081094

Please sign in to comment.