-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47d1d8f
commit e707820
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: ESLint Compatibility Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
eslint-test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
eslint-version: [8, 9] # Test with ESLint v8 and v9 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '22' # Use Node.js 16 for compatibility; adjust if necessary | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Install Specific ESLint Version | ||
run: npm install eslint@${{ matrix.eslint-version }} # Install ESLint based on matrix version | ||
|
||
- name: Run Tests | ||
run: npm run test | ||
Check warning Code scanning / CodeQL Workflow does not contain permissions Medium
Actions Job or Workflow does not set permissions
|