Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ updates:
default-days: 10
schedule:
interval: "weekly"

- package-ecosystem: "nix"
cooldown:
default-days: 10
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
name: CI

on:
pull_request:
merge_group:

permissions:
contents: read

jobs:
nocommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: nobssoftware/nocommit@5c3cf9519fe40b80b0954d254085b67b532a5dc3

nix-flake-check:
strategy:
fail-fast: false
Expand All @@ -31,7 +27,6 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: cachix/install-nix-action@ab739621df7a23f52766f9ccc97f38da6b7af14f
- run: nix run .#nix-flake-check-changed

nix-flake-health:
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/git-health.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Git Health

on:
pull_request:
types:
- opened
- synchronize
- reopened
merge_group:

jobs:
conventional-commit:
name: PR title
Expand All @@ -19,11 +17,9 @@ jobs:
path: "~/.cache/nix"
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: cachix/install-nix-action@ab739621df7a23f52766f9ccc97f38da6b7af14f
- run: |
<<<"$TITLE" nix run .#conventional-commit
- run: "<<<\"$TITLE\" nix run .#conventional-commit \n"
env:
TITLE: "${{ github.event.pull_request.title || github.event.merge_group.head_commit.message }}"

merging-into-master:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
Expand Down
13 changes: 9 additions & 4 deletions nix/treefmt.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{ ... }:
{
projectRootFile = "flake.nix";
programs.nixfmt = {
enable = true;
strict = true;
programs = {
# keep-sorted start block=true
keep-sorted.enable = true;
nixfmt = {
enable = true;
strict = true;
};
yamlfmt.enable = true;
# keep-sorted end
};
programs.keep-sorted.enable = true;
}