Skip to content

ESLint 9 + compatibility check #2

ESLint 9 + compatibility check

ESLint 9 + compatibility check #2

name: "Check package compatibility"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check-compatibility:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 22]
eslint: [8, 9]
steps:
- uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- uses: actions/setup-node@v4
name: Setup node
with:
cache: pnpm
node-version: ${{ matrix.node }}
- name: Override ESLint
working-directory: apps/compatibility-check
run: pnpm install -D eslint@${{ matrix.eslint }}
- name: Lint project
working-directory: apps/compatibility-check
run: pnpm run lint