lint: upgrade eslint to v9 and flag config #188
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: Build | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Cache Yarn dependencies | |
uses: ./.github/actions/cache | |
with: | |
os: ${{ runner.os }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Lint JavaScript | |
run: yarn lint | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Cache Yarn dependencies | |
uses: ./.github/actions/cache | |
with: | |
os: ${{ runner.os }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Lint JavaScript | |
run: yarn build | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [18, 20, 22] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.version }} | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Cache Yarn dependencies | |
uses: ./.github/actions/cache | |
with: | |
os: ${{ runner.os }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Test | |
run: yarn test |