Skip to content

Commit e858def

Browse files
committed
ci(github): add a job for checking REUSE compliance
Refs: #50
1 parent 38466ec commit e858def

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,23 @@ jobs:
4646
- name: Run the commit linter
4747
run: nix develop .#ci-committed -c elixir scripts/check_commits.exs
4848

49+
reuse:
50+
name: REUSE Compliance
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Clone the repository
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
- name: Install Nix
58+
uses: DeterminateSystems/nix-installer-action@main
59+
- name: Setup the Nix cache
60+
uses: DeterminateSystems/magic-nix-cache-action@main
61+
- name: Setup the environment
62+
run: nix build -L --no-link .#devShells.x86_64-linux.ci-reuse
63+
- name: Run the REUSE compliance linter
64+
run: nix develop .#ci-reuse -c reuse lint
65+
4966
format:
5067
name: Code formatting and typos
5168
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)