Skip to content

Update dependency npm-run-all2 to v6.2.3 #601

Update dependency npm-run-all2 to v6.2.3

Update dependency npm-run-all2 to v6.2.3 #601

Workflow file for this run

---
name: Component tests
on:
pull_request:
branches:
- main
jobs:
test-ct:
strategy:
fail-fast: false
matrix:
# os: [ubuntu-22.04, macos-14]
shardIndex: [1, 2, 3]
env:
shardTotal: 3
# runs-on: ${{ matrix.os }}
runs-on: macos-14
steps:
# https://github.com/actions/runner-images/issues/9330
- name: Allow microphone access to all apps (macOS)
# if: matrix.os == 'macos-14'
run: |
sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);"
# - name: Set up PulseAudio (Ubuntu)
# if: matrix.os == 'ubuntu-22.04'
# run: |
# sudo apt-get update
# sudo apt-get install -y pulseaudio
# systemctl --user start pulseaudio.socket
- name: Check out repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps
- run: npm run test-ct -- --shard=${{ matrix.shardIndex }}/${{ env.shardTotal }}
- name: Upload test results
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
if: always()
with:
# name: blob-report-ct-${{ matrix.os }}-${{ matrix.shardIndex }}
name: blob-report-ct-${{ matrix.shardIndex }}
path: blob-report/
merge-reports-ct:
if: always()
needs: [test-ct]
runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-22.04, macos-14]
steps:
- name: Check out repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Download blob reports
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
path: all-blob-reports
# pattern: blob-report-ct-${{ matrix.os }}-*
pattern: blob-report-ct-*
merge-multiple: true
- name: Merge into HTML report
run: npx playwright merge-reports --reporter html ./all-blob-reports
- name: Upload HTML report
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
with:
# name: html-report-ct-${{ matrix.os }}--attempt-${{ github.run_attempt }}
name: html-report-ct--attempt-${{ github.run_attempt }}
path: playwright-report
test-ct-success:
needs: [test-ct]
runs-on: ubuntu-latest
if: always()
steps:
- name: Check for failure
if: needs.test-ct.result == 'failure' || needs.test-ct.result == 'cancelled'
run: exit 1