diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index dd69c2940..f643007b1 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -21,10 +21,12 @@ on: jobs: regression: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: + os: [ubuntu-latest, macos-latest] + CI_NODE_INDEX: [0, 1, 2, 3, 4] steps: @@ -32,6 +34,14 @@ jobs: 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: diff --git a/scripts/regression-tests.sh b/scripts/regression-tests.sh index b35ede6fd..8997be2a3 100755 --- a/scripts/regression-tests.sh +++ b/scripts/regression-tests.sh @@ -17,7 +17,9 @@ EXAMPLE_INFRA=$(echo "$EXAMPLE_DIRS" | grep -P '^(js|css)$') PACKAGE_UPDATE=$(git diff --name-only $COMMIT_RANGE | grep -P 'package(-lock)?\.json') -if [[ $TEST_INFRA || $EXAMPLE_INFRA || $PACKAGE_UPDATE ]] +REGRESSION_WORKFLOW_UPDATE=$(git diff --name-only $COMMIT_RANGE | grep -P '.github/workflows/regression.yml') + +if [[ $TEST_INFRA || $EXAMPLE_INFRA || $PACKAGE_UPDATE || $REGRESSION_WORKFLOW_UPDATE ]] then # If the example/js or example/css directories or the test/index.js or the test/utils.js