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

Commit b28cf76

Browse files
committed
Use macos-13 for GitHub Actions on macOS.
Firefox is not installed by default on macos-latest (macos-14).
1 parent ff6c1e8 commit b28cf76

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
lint:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- uses: actions/setup-node@v2
1212
with:
1313
node-version: "20"
@@ -18,7 +18,7 @@ jobs:
1818
name: Build matrix for unit test
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222
- id: read-matrix
2323
name: Read build matrix
2424
run: echo "::set-output name=matrix::`jq -c . test/unit/config/run_matrix.json`"
@@ -30,11 +30,13 @@ jobs:
3030
strategy:
3131
matrix: ${{ fromJSON(needs.build-matrix.outputs.matrix)[github.event_name] }}
3232
steps:
33-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v4
3434
- uses: actions/setup-node@v2
3535
with:
3636
node-version: "20"
3737
- run: npm install
38+
- if: ${{ runner.os == 'macOS' and matrix.browser == 'FirefoxWithFlags' }}
39+
run: echo "FIREFOX_BIN=/Applications/Firefox.app/Contents/MacOS/firefox">> $GITHUB_ENV
3840
- name: Run test cases
3941
env:
4042
BROWSER: ${{ matrix.browser }}

test/unit/config/run_matrix.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"os": [
44
"ubuntu-latest",
55
"windows-latest",
6-
"macos-latest"
6+
"macos-13"
77
],
88
"browser": [
99
"ChromeWithFlags",

0 commit comments

Comments
 (0)