infrastructure/workflows/reuse-check.nix

28 lines
475 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ nix-actions, ... }:
{
name = "REUSE lint";
on = [
"push"
"pull_request"
];
jobs.pre-commit = {
runs-on = "nix";
steps = [
{ uses = "actions/checkout@v3"; }
{
name = "REUSE lint";
run = nix-actions.lib.nix-shell {
script = "reuse lint";
shell = "reuse-check";
};
}
];
};
}