Skip to content

Commit aca3121

Browse files
authored
break: require minimum node 20 to run cli (#13)
* break: require minimum node 20 to run cli * CI: run cli directly
1 parent c1d331e commit aca3121

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/codeguardian.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,21 @@ jobs:
1010
scan:
1111
name: Run CodeGuardian
1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: [20, 22, 24, 25]
1316
steps:
1417
- name: Checkout repository
1518
uses: actions/checkout@v5
1619

1720
- name: Setup Node.js
1821
uses: actions/setup-node@v5
1922
with:
20-
node-version: '22'
23+
node-version: ${{ matrix.node-version }}
2124
cache: 'npm'
2225

2326
- name: Install dependencies
2427
run: npm ci
2528

2629
- name: Run CodeGuardian scanner (CI mode)
27-
run: npx codeguardian --ci
30+
run: node src/cli.js --ci

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444
"ignore": "^7.0.5"
4545
},
4646
"engines": {
47-
"node": ">=18.0.0"
47+
"node": ">=20.0.0"
4848
}
4949
}

0 commit comments

Comments
 (0)