Skip to content

Commit

Permalink
add action test
Browse files Browse the repository at this point in the history
  • Loading branch information
ejahnGithub committed Nov 6, 2024
1 parent 47d1d8f commit e707820
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/eslint-version-compatibility.yml
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

0 comments on commit e707820

Please sign in to comment.