Bump the lint group across 1 directory with 3 updates #3527
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: ci | |
on: | |
push: | |
branches: [main, "v*"] | |
tags: ["v*"] | |
pull_request: | |
branches: [main, "v*"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
# https://consoledonottrack.com/ | |
DO_NOT_TRACK: 1 | |
jobs: | |
tasks: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
task: | |
- format | |
- license-header | |
- lint | |
- attw | |
- bundle-size | |
- build | |
include: | |
- task: format | |
diff-check: true | |
- task: license-header | |
diff-check: true | |
- task: bundle-size | |
diff-check: true | |
name: ${{ matrix.task }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: "npm" | |
- uses: actions/cache@v4 | |
with: | |
path: .turbo | |
key: ${{ runner.os }}/${{ matrix.task }}/${{ github.sha }} | |
restore-keys: ${{ runner.os }}/${{ matrix.task }} | |
- run: npm ci | |
- run: npx turbo run ${{ matrix.task }} | |
- name: Check changed files | |
if: ${{ matrix.diff-check }} | |
run: node scripts/gh-diffcheck.js | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [22.7.0, 20.17.0, 18.20.4, 18.14.1] | |
name: "test on Node.js ${{ matrix.node-version }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: "npm" | |
- uses: actions/cache@v4 | |
with: | |
path: .turbo | |
key: ${{ runner.os }}/test/${{ github.sha }} | |
restore-keys: ${{ runner.os }}/test | |
- run: npm ci | |
- run: npx turbo run test |