Skip to content

Commit 17ae174

Browse files
chore(deps/test): move to es modules, node:test, single dist file (#595)
Signed-off-by: Keith Zantow <kzantow@gmail.com>
1 parent 6d473d3 commit 17ae174

28 files changed

+41069
-292198
lines changed

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,23 @@ jobs:
3838
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3939
with:
4040
path: ./
41-
artifact-name: ${{ matrix.os }}-1.spdx
4241
persist-credentials: false
4342

4443
- uses: ./
4544
with:
4645
path: ./tests/fixtures/npm-project
47-
artifact-name: ${{ matrix.os }}-2.spdx
46+
artifact-name: ${{ matrix.os }}-1.spdx
4847

4948
- uses: ./
5049
with:
5150
path: ./tests/fixtures/yarn-project
52-
artifact-name: ${{ matrix.os }}-3.spdx
51+
artifact-name: ${{ matrix.os }}-2.spdx
5352

5453
- uses: ./
5554
id: yarn-scan
5655
with:
5756
path: ./tests/fixtures/yarn-project
58-
artifact-name: ${{ matrix.os }}-4.spdx
57+
artifact-name: ${{ matrix.os }}-3.spdx
5958

6059
- uses: ./
6160
with:
@@ -73,6 +72,9 @@ jobs:
7372
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7473
with:
7574
persist-credentials: false
75+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
76+
with:
77+
node-version: "22" # required > 22 for node:test
7678
- name: Build images
7779
run: |
7880
for distro in alpine centos debian; do

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ inputs:
7979

8080
runs:
8181
using: "node20"
82-
main: "dist/runSyftAction/index.js"
82+
main: "dist/index.cjs"

0 commit comments

Comments
 (0)