ci: use fsfe/reuse-action for REUSE compliance checks - #20
Merged
Conversation
Installing reuse via apt requires running apt-get update first, adding ~2 minutes to every CI run. Switch to the official fsfe/reuse-action which runs in a pre-built container, eliminating this overhead. Introduce SKIP_REUSE variable to skip the reuse task in CI since compliance is now verified in a dedicated parallel job. Signed-off-by: Andrei Gherzan <andrei.gherzan@canonical.com>
There was a problem hiding this comment.
Pull request overview
This PR optimizes CI REUSE compliance checks by switching from installing reuse via apt to using the official fsfe/reuse-action, and introduces a SKIP_REUSE flag to avoid running the REUSE check inside the existing validation task when CI already verifies it in a dedicated job.
Changes:
- Add a dedicated
reusejob tovalidate.ymlandrelease.ymlthat runsfsfe/reuse-action. - Remove the
apt-get update && apt-get install reusestep from CI workflows to reduce runtime. - Update the
validateTaskfile task to allow skipping the REUSE step in CI viaSKIP_REUSE=true.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Taskfile.yml | Makes the REUSE validation step skippable during task validate via SKIP_REUSE. |
| .github/workflows/validate.yml | Adds a parallel REUSE compliance job using fsfe/reuse-action and skips REUSE inside task validate. |
| .github/workflows/release.yml | Adds a REUSE compliance job and gates release on it; skips REUSE inside task validate. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Installing reuse via apt requires running apt-get update first, adding ~2 minutes to every CI run. Switch to the official fsfe/reuse-action which runs in a pre-built container, eliminating this overhead.
Introduce SKIP_REUSE variable to skip the reuse task in CI since compliance is now verified in a dedicated parallel job.