Skip to content

Commit 2aca2c4

Browse files
committed
feat: wip
1 parent 6cfe3ec commit 2aca2c4

4 files changed

Lines changed: 44 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"GitHub.vscode-pull-request-github",
8585
"golang.Go",
8686
"HashiCorp.terraform",
87+
"jnoortheen.nix-ide",
8788
"mads-hartmann.bash-ide-vscode",
8889
"mkhl.shfmt",
8990
"ms-azuretools.vscode-docker",

.github/dependabot.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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/*

.github/workflows/nix.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.3
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"

config/lint/super-linter.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ GITLEAKS_LOG_LEVEL=warn
77
IGNORE_GITIGNORED_FILES=true
88
LINTER_RULES_PATH=config/lint
99
MARKDOWN_CONFIG_FILE=.markdown-lint.yaml
10+
REMOVE_ANSI_COLOR_CODES_FROM_OUTPUT=true
1011
SAVE_SUPER_LINTER_OUTPUT=true
1112
SAVE_SUPER_LINTER_SUMMARY=true
1213
VALIDATE_ALL_CODEBASE=true

0 commit comments

Comments
 (0)