mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 04:51:55 -05:00
github: add automatic format check
This commit is contained in:
parent
0831fdaeb9
commit
124f70e722
2
.github/workflows/check-flake.yml
vendored
2
.github/workflows/check-flake.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Check flake
|
||||
name: "flake: evaluation check"
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
20
.github/workflows/check-fmt.yml
vendored
Normal file
20
.github/workflows/check-fmt.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: "flake: format check"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: cachix/install-nix-action@v20
|
||||
|
||||
- name: Check if flake.nix successfully evaluates
|
||||
run: nix fmt -- -c .
|
8
.github/workflows/update-flake-lock.yml
vendored
8
.github/workflows/update-flake-lock.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Bump flake.lock
|
||||
name: "flake.lock: update"
|
||||
|
||||
on:
|
||||
schedule:
|
||||
|
@ -17,15 +17,15 @@ jobs:
|
|||
|
||||
- uses: cachix/install-nix-action@v20
|
||||
|
||||
- name: Update inputs in flake.nix
|
||||
- name: Update inputs in flake.lock
|
||||
run: nix flake update
|
||||
|
||||
- name: Check if flake.nix still evaluates
|
||||
- name: Check if flake still evaluates
|
||||
run: nix flake check
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: Bump flake.lock
|
||||
commit_message: "flake.lock: update"
|
||||
branch: master
|
||||
commit_options: '--no-verify --signoff'
|
||||
file_pattern: flake.lock
|
||||
|
|
Loading…
Reference in a new issue