Add ESLint 9 support and migrate to flat config #215
This file contains hidden or 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: | |
| pull_request: | |
| push: | |
| branches: | |
| - trunk | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Setup and install | |
| uses: Automattic/vip-actions/nodejs-setup@trunk | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Run linter | |
| run: npm run lint | |
| check-types: | |
| name: Check types | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Setup and install | |
| uses: Automattic/vip-actions/nodejs-setup@trunk | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Check types | |
| run: npm run check-types | |
| dependaban: | |
| name: Dependaban | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: Automattic/vip-actions/dependaban@trunk | |
| jest: | |
| name: Jest tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| needs: | |
| - lint | |
| - check-types | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: | |
| - version-file: .nvmrc | |
| version-name: pinned | |
| steps: | |
| - name: Setup and install | |
| uses: Automattic/vip-actions/nodejs-setup@trunk | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Run tests | |
| run: npm test |