chore(deps): update typescript-eslint monorepo to v6 (major) - autoclosed #619
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: Checks | |
on: [pull_request] | |
env: | |
# reduces noise from npm post-install scripts | |
DISABLE_OPENCOLLECTIVE: true | |
OPEN_SOURCE_CONTRIBUTOR: true | |
jobs: | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Commit Linter | |
uses: wagoid/commitlint-github-action@v5 | |
with: | |
configFile: './package.json' | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- name: install | |
run: npm ci | |
- name: regenerate docs | |
run: npm run tools:generate-configs-list | |
- name: report regenerated docs | |
run: | | |
git diff --name-only \ | |
| xargs -I '{}' bash -c \ | |
'echo "::error file={}::This needs to be regenerated by running \`tools:generate-configs-list\`" && false' | |
lint: | |
# prettier-ignore | |
name: Lint on ${{ matrix.os }} with eslint v${{ matrix.eslint }}, using Node.js LTS | |
strategy: | |
fail-fast: false | |
matrix: | |
eslint: [7, 8] | |
os: [ubuntu-latest, macOS-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- run: npm ci | |
- run: npm install eslint@${{ matrix.eslint }} --no-fund | |
- run: npm run lint | |
test: | |
name: Test on ${{ matrix.os }} using Node.js LTS | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- run: npm ci | |
- run: npm run test | |
typecheck: | |
name: Typecheck on ${{ matrix.os }} using Node.js LTS | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- run: npm ci | |
- run: npm run typecheck |