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. #343
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@v2 | |
- 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@v2 | |
- 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@v2 | |
- name: Install Firefox | |
if: ${{ matrix.browser == 'FirefoxWithFlags' }} | |
uses: browser-actions/setup-firefox@v1 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
- run: npm install | |
- name: Run test cases | |
env: | |
BROWSER: ${{ matrix.browser }} | |
run: npm run unittest |