Skip to content

Commit e707820

Browse files
committed
add action test
1 parent 47d1d8f commit e707820

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ESLint Compatibility Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
eslint-test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
eslint-version: [8, 9] # Test with ESLint v8 and v9
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: '22' # Use Node.js 16 for compatibility; adjust if necessary
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Install Specific ESLint Version
26+
run: npm install eslint@${{ matrix.eslint-version }} # Install ESLint based on matrix version
27+
28+
- name: Run Tests
29+
run: npm run test

0 commit comments

Comments
 (0)