mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
workflows/check-format: add actionlint (#406114)
This commit is contained in:
commit
53a79ee500
3 changed files with 3 additions and 8 deletions
2
.github/workflows/eval.yml
vendored
2
.github/workflows/eval.yml
vendored
|
@ -196,7 +196,7 @@ jobs:
|
||||||
# Use the target branch to get accurate maintainer info
|
# Use the target branch to get accurate maintainer info
|
||||||
nix-build target/ci -A eval.compare \
|
nix-build target/ci -A eval.compare \
|
||||||
--arg beforeResultDir ./targetResult \
|
--arg beforeResultDir ./targetResult \
|
||||||
--arg afterResultDir $(realpath prResult) \
|
--arg afterResultDir "$(realpath prResult)" \
|
||||||
--arg touchedFilesJson ./touched-files.json \
|
--arg touchedFilesJson ./touched-files.json \
|
||||||
-o comparison
|
-o comparison
|
||||||
|
|
||||||
|
|
7
.github/workflows/lint-actions.sh
vendored
7
.github/workflows/lint-actions.sh
vendored
|
@ -1,7 +0,0 @@
|
||||||
#!/usr/bin/env nix-shell
|
|
||||||
#!nix-shell -i bash -p bash actionlint shellcheck -I nixpkgs=../..
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
||||||
cd "$SCRIPT_DIR/../.."
|
|
||||||
actionlint
|
|
|
@ -44,6 +44,8 @@ let
|
||||||
# By default it's info, which is too noisy since we have many unmatched files
|
# By default it's info, which is too noisy since we have many unmatched files
|
||||||
settings.on-unmatched = "debug";
|
settings.on-unmatched = "debug";
|
||||||
|
|
||||||
|
programs.actionlint.enable = true;
|
||||||
|
|
||||||
programs.keep-sorted.enable = true;
|
programs.keep-sorted.enable = true;
|
||||||
|
|
||||||
# This uses nixfmt-rfc-style underneath,
|
# This uses nixfmt-rfc-style underneath,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue