Infrastructure: Address failing macOS regression tests #4382
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: Run regression tests | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/regression.yml" | |
- "package*.json" | |
- "test/**" | |
- "content/**/examples/**" | |
- "!content/landmarks/examples/**" | |
push: | |
branches-ignore: | |
- main | |
- "dependabot/**" | |
paths: | |
- ".github/workflows/regression.yml" | |
- "package*.json" | |
- "test/**" | |
- "content/**/examples/**" | |
- "!content/landmarks/examples/**" | |
jobs: | |
regression: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
CI_NODE_INDEX: [0, 1, 2, 3, 4] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up firefox for macos | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew install firefox | |
# Install GNU grep to use 'grep -P' | |
brew install grep | |
echo "/opt/homebrew/opt/grep/libexec/gnubin" >> $GITHUB_PATH | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Run Ava on changed files in PR | |
run: ./scripts/regression-tests.sh | |
if: github.event_name == 'pull_request' | |
env: | |
COMMIT_RANGE: "origin/${{ github.base_ref }}...${{ github.sha }}" | |
CI_NODE_TOTAL: 5 | |
CI_NODE_INDEX: ${{ matrix.CI_NODE_INDEX }} | |
TEST_WAIT_TIME: 10000 | |
- name: Run Ava for changed files from origin branch | |
run: ./scripts/regression-tests.sh | |
if: github.event_name == 'push' | |
env: | |
COMMIT_RANGE: "origin/main...${{ github.ref }}" | |
CI_NODE_TOTAL: 5 | |
CI_NODE_INDEX: ${{ matrix.CI_NODE_INDEX }} | |
TEST_WAIT_TIME: 10000 |