-
-
Notifications
You must be signed in to change notification settings - Fork 119
23 lines (23 loc) · 750 Bytes
/
test.yml
File metadata and controls
23 lines (23 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
eslint-version: [9, 10]
name: Test (Node 22, ESLint ${{ matrix.eslint-version }})
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Install ESLint ${{ matrix.eslint-version }}
run: npm i -D eslint@${{ matrix.eslint-version }} --legacy-peer-deps
- name: Run tests
run: npm run build && npm run spec -- --testPathIgnorePatterns="test/e2e-repo.spec.ts|test/flat-config-typing.spec.ts"