Source patterns and practices pages in APG (Issue #2702) #3857
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: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
CI_NODE_INDEX: [0, 1, 2, 3, 4] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
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 |