Update dependency eslint to v9 #306
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
on: | |
push: | |
branches: | |
- main | |
- fork | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- run: npm ci | |
- run: npm run lint | |
test: | |
name: test (${{ matrix.os }}, node ${{ matrix.node-version }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
node-version: [18, 20, 22, 23] | |
steps: | |
- name: Normalise line-ending handling in Git | |
shell: bash | |
run: | | |
git config --global core.autocrlf false | |
if: runner.os == 'Windows' | |
- name: Disable AppArmor User Namespace Restrictions | |
(required to open Chrome on Ubuntu 23.10+ without --no-sandbox) | |
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns | |
if: runner.os == 'Linux' | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm test |