Skip to content

Closes #1317: Add filepath to the start event #323

Closes #1317: Add filepath to the start event

Closes #1317: Add filepath to the start event #323

Workflow file for this run

---
name: Development workflow
on:
pull_request:
branches:
- main
paths-ignore:
- 'website/**'
- '**/*.md'
- '**/*.mdx'
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: ⎔ Setup node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
cache: npm
- name: 📥 Download deps
run: npm ci
- name: 🧪 Run lint
run: npm run lint
build:
permissions:
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
contents: read # for actions/checkout to fetch code
runs-on: ${{ matrix.os }}
needs: lint
strategy:
fail-fast: false
matrix:
node:
- 20
- 22
- 24
os: [ubuntu-latest, windows-latest]
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: ⬇️ Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: ⎔ Setup node ${{ matrix.node }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node }}
cache: npm
- name: 📥 Download deps
run: npm ci
- name: 🏗 Build
run: npm run build
- name: Ensure no git changes
run: git diff --exit-code
- name: Run tests
if: matrix.os != 'ubuntu-latest'
uses: nick-invision/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
with:
timeout_minutes: 20
max_attempts: 3
command: npm run test