File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ updates:
1919 applies-to : version-updates
2020 patterns :
2121 - actions/*
22+ - cachix/install-nix-action
2223 - docker/*
2324 - github/*
2425 - googleapis/*
Original file line number Diff line number Diff line change 1+ ---
2+ name : Build and check Nix config
3+
4+ on : # yamllint disable-line rule:truthy
5+ push :
6+ paths :
7+ - " .github/workflows/nix.yaml"
8+ - " config/nix/**"
9+ pull_request :
10+ paths :
11+ - " .github/workflows/nix.yaml"
12+ - " config/nix/**"
13+ workflow_call : null
14+
15+ permissions :
16+ contents : read
17+
18+ jobs :
19+ test-nix-config :
20+ concurrency :
21+ # Ref: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
22+ # github.head_ref: head_ref or source branch of the pull request
23+ # github.ref: ref of the branch that triggered the workflow
24+ group : ${{ github.workflow }}-test-nix-config-${{ github.head_ref || github.ref }}-${{ github.event_name }}
25+ cancel-in-progress : true
26+ permissions :
27+ contents : read
28+ packages : read
29+ statuses : write
30+ runs-on : ubuntu-latest
31+ steps :
32+ - name : Install nix
33+ uses : cachix/install-nix-action@96951a368ba55167b55f1c916f7d416bac6505fe # v31.10.2
34+ with :
35+ enable_kvm : true
36+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
37+ with :
38+ persist-credentials : false
39+ - run : nix build
40+ - run : nix flake check
41+ - run : nix-shell --run "echo OK"
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ GITLEAKS_LOG_LEVEL=warn
77IGNORE_GITIGNORED_FILES = true
88LINTER_RULES_PATH = config/lint
99MARKDOWN_CONFIG_FILE = .markdown-lint.yaml
10+ REMOVE_ANSI_COLOR_CODES_FROM_OUTPUT = true
1011SAVE_SUPER_LINTER_OUTPUT = true
1112SAVE_SUPER_LINTER_SUMMARY = true
1213VALIDATE_ALL_CODEBASE = true
You can’t perform that action at this time.
0 commit comments