diff --git a/.github/workflows/check-flake.yml b/.github/workflows/check-flake.yml index a47c6e43..5dda1419 100644 --- a/.github/workflows/check-flake.yml +++ b/.github/workflows/check-flake.yml @@ -1,4 +1,4 @@ -name: Check flake +name: "flake: evaluation check" on: push: diff --git a/.github/workflows/check-fmt.yml b/.github/workflows/check-fmt.yml new file mode 100644 index 00000000..594efdef --- /dev/null +++ b/.github/workflows/check-fmt.yml @@ -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 . diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml index b98d68bc..5b0640da 100644 --- a/.github/workflows/update-flake-lock.yml +++ b/.github/workflows/update-flake-lock.yml @@ -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