Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Use macos-13 for GitHub Actions on macOS.
Browse files Browse the repository at this point in the history
Firefox is not installed by default on macos-latest (macos-14).
  • Loading branch information
jianjunz committed Jun 23, 2024
1 parent ff6c1e8 commit b28cf76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: "20"
Expand All @@ -18,7 +18,7 @@ jobs:
name: Build matrix for unit test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- id: read-matrix
name: Read build matrix
run: echo "::set-output name=matrix::`jq -c . test/unit/config/run_matrix.json`"
Expand All @@ -30,11 +30,13 @@ jobs:
strategy:
matrix: ${{ fromJSON(needs.build-matrix.outputs.matrix)[github.event_name] }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: "20"
- run: npm install
- if: ${{ runner.os == 'macOS' and matrix.browser == 'FirefoxWithFlags' }}
run: echo "FIREFOX_BIN=/Applications/Firefox.app/Contents/MacOS/firefox">> $GITHUB_ENV
- name: Run test cases
env:
BROWSER: ${{ matrix.browser }}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/config/run_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"os": [
"ubuntu-latest",
"windows-latest",
"macos-latest"
"macos-13"
],
"browser": [
"ChromeWithFlags",
Expand Down

0 comments on commit b28cf76

Please sign in to comment.