Skip to content

Commit 6544ea1

Browse files
committed
refactor: Scan individual packages & then the whole repo
1 parent 22f89cf commit 6544ea1

File tree

2 files changed

+23
-65
lines changed

2 files changed

+23
-65
lines changed

.github/workflows/reuse-compliance.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,8 @@ on:
1212
permissions: {}
1313

1414
jobs:
15-
root-compliance-check:
16-
name: Root Workspace Compliance Check
17-
runs-on: ubuntu-24.04
18-
steps:
19-
- uses: actions/checkout@v5
20-
- name: Execute REUSE Compliance Check for root workspace only
21-
run: ./scripts/check-root-reuse-compliance.sh
22-
2315
packages-compliance-check:
24-
needs: root-compliance-check
25-
name: Packages Compliance Check
16+
name: Packages Compliance
2617
runs-on: ubuntu-24.04
2718
strategy:
2819
matrix:
@@ -37,16 +28,34 @@ jobs:
3728
steps:
3829
- uses: actions/checkout@v5
3930

31+
# Check each package if compliance is correctly set up.
32+
# Each one of these packages would be published separately.
4033
- name: Execute REUSE Compliance Check for ${{ matrix.package }}
4134
uses: fsfe/reuse-action@v6
4235
with:
4336
args: --root ${{ matrix.package }} lint
4437

38+
# Do the report for the whole repository, adding badge to the
39+
# README file.
4540
final-report:
46-
name: Compliance Check
47-
needs: [root-compliance-check, packages-compliance-check]
41+
name: REUSE Compliance Report
42+
needs: [packages-compliance-check]
4843
runs-on: ubuntu-24.04
4944
steps:
50-
- name: Report
45+
- uses: actions/checkout@v5
46+
47+
- name: Temporarily add MIT license for full repo compliance
48+
run: |
49+
# Download MIT license temporarily for api.reuse.software reporting
50+
reuse download MIT
51+
52+
- name: Run official REUSE lint for api.reuse.software reporting
53+
uses: fsfe/reuse-action@v6
54+
with:
55+
args: lint
56+
57+
- name: Clean up temporary license file
5158
run: |
52-
echo "📊 Final Report: OK"
59+
# Remove the temporarily added MIT license
60+
rm -f LICENSES/MIT.txt
61+
echo "Temporarily added licenses cleaned up"

scripts/check-root-reuse-compliance.sh

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

0 commit comments

Comments
 (0)