Skip to content

Commit de2b0c9

Browse files
committed
refactor: Scan root before packages
1 parent 013cfdc commit de2b0c9

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.github/workflows/reuse-compliance.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,22 @@ on:
1212
permissions: {}
1313

1414
jobs:
15-
compliance-check:
16-
name: Compliance Check
15+
root-compliance-check:
16+
name: Root Workspace Compliance Check
17+
runs-on: ubuntu-24.04
18+
steps:
19+
- uses: actions/checkout@v5
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v6
23+
with:
24+
node-version: 22.20.0
25+
26+
- name: Execute REUSE Compliance Check for root workspace only
27+
run: ./scripts/check-root-reuse-compliance.sh
28+
29+
packages-compliance-check:
30+
name: Packages Compliance Check
1731
runs-on: ubuntu-24.04
1832
strategy:
1933
matrix:
@@ -28,14 +42,6 @@ jobs:
2842
steps:
2943
- uses: actions/checkout@v5
3044

31-
- name: Setup Node.js
32-
uses: actions/setup-node@v6
33-
with:
34-
node-version: 22.20.0
35-
36-
- name: Execute REUSE Compliance Check for root package only
37-
run: ./scripts/check-root-reuse-compliance.sh
38-
3945
- name: Execute REUSE Compliance Check for ${{ matrix.package }}
4046
uses: fsfe/reuse-action@v6
4147
with:

scripts/check-root-reuse-compliance.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FAILED_FILES=0
1616

1717
# Function to check a single file
1818
check_file() {
19-
if npx reuse lint-file "$1" >/dev/null 2>&1; then
19+
if pipx run reuse lint-file "$1" 2>&1; then
2020
return 0
2121
else
2222
FAILED_FILES=$((FAILED_FILES + 1))

0 commit comments

Comments
 (0)