28 lines
475 B
Nix
28 lines
475 B
Nix
|
# 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";
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|