Skip to content

Commit

Permalink
fix: GitHub Actions Linux XVFB
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweck committed Sep 18, 2024
1 parent bd2a1bd commit f130afb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ jobs:
run: echo "${{ matrix.osarch }}" && yarn test && yarn test-cli
- name: non-PR action, Linux, Electron
if: ${{ github.event_name != 'pull_request' && (matrix.osarch == 'linux-intel' || matrix.osarch == 'linux-arm') }}
uses: coactions/setup-xvfb@v1
with:
run: yarn test-electron && yarn test-electron-cli
working-directory: ./
# options:
# run: echo "${{ matrix.osarch }}" && xvfb-run yarn test-electron && xvfb-run yarn test-electron-cli
# uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a #v1
# with:
# run: yarn test-electron && yarn test-electron-cli
# working-directory: ./
# # options:
run: echo "${{ matrix.osarch }}" && xvfb-run yarn test-electron && xvfb-run yarn test-electron-cli
- name: non-PR action, Mac, Puppeteer
if: ${{ github.event_name != 'pull_request' && (matrix.osarch == 'mac-intel' || matrix.osarch == 'mac-arm') }}
if: ${{ github.event_name != 'pull_request' && (matrix.osarch == 'macos-intel' || matrix.osarch == 'macos-arm') }}
run: echo "${{ matrix.osarch }}" && yarn test && yarn test-cli
- name: non-PR action, Mac, Electron
if: ${{ github.event_name != 'pull_request' && (matrix.osarch == 'mac-intel' || matrix.osarch == 'mac-arm') }}
if: ${{ github.event_name != 'pull_request' && (matrix.osarch == 'macos-intel' || matrix.osarch == 'macos-arm') }}
run: echo "${{ matrix.osarch }}" && yarn test-electron && yarn test-electron-cli

0 comments on commit f130afb

Please sign in to comment.