This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
Use macos-13 image for GitHub Actions on macOS. #354
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | ||
permissions: read-all | ||
on: [push, pull_request] | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "20" | ||
- run: npm install | ||
- run: grunt check | ||
working-directory: ./scripts | ||
build-matrix: | ||
name: Build matrix for unit test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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`" | ||
outputs: | ||
matrix: ${{ steps.read-matrix.outputs.matrix }} | ||
unit-test: | ||
needs: build-matrix | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: ${{ fromJSON(needs.build-matrix.outputs.matrix)[github.event_name] }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "20" | ||
- run: npm install | ||
- if: ${{ runner.os == 'macOS' and matrix.browser == 'FirefoxWithFlags' }} | ||
Check failure on line 38 in .github/workflows/ci.yaml GitHub Actions / Continuous IntegrationInvalid workflow file
|
||
run: echo "FIREFOX_BIN=/Applications/Firefox.app/Contents/MacOS/firefox">> $GITHUB_ENV | ||
- name: Run test cases | ||
env: | ||
BROWSER: ${{ matrix.browser }} | ||
run: npm run unittest |