Skip to content
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. #356

Use macos-13 image for GitHub Actions on macOS.

Use macos-13 image for GitHub Actions on macOS. #356

Workflow file for this run

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
- name: Set Firefox path for macOS
if: ${{ runner.os == 'macOS' && matrix.browser == 'FirefoxWithFlags' }}
run: echo "FIREFOX_BIN=/Applications/Firefox.app/Contents/MacOS/firefox">> $GITHUB_ENV
- name: Run test cases
env:
BROWSER: ${{ matrix.browser }}
run: npm run unittest