workflows/check-format: add actionlint (#406114)

Changed files
+3 -8
.github
ci
+1 -1
.github/workflows/eval.yml
···
# Use the target branch to get accurate maintainer info
nix-build target/ci -A eval.compare \
--arg beforeResultDir ./targetResult \
-
--arg afterResultDir $(realpath prResult) \
+
--arg afterResultDir "$(realpath prResult)" \
--arg touchedFilesJson ./touched-files.json \
-o comparison
-7
.github/workflows/lint-actions.sh
···
-
#!/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
+2
ci/default.nix
···
# By default it's info, which is too noisy since we have many unmatched files
settings.on-unmatched = "debug";
+
programs.actionlint.enable = true;
+
programs.keep-sorted.enable = true;
# This uses nixfmt-rfc-style underneath,