Skip to content

Commit

Permalink
added nix fmt to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed Nov 18, 2024
1 parent a7be19b commit 2b6cba3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ jobs:
with:
cargo-profile: ${{ needs.check-inputs.outputs.cargo-profile }}

nix:
name: Nix
needs: check-inputs
uses: ./.github/workflows/nix.yaml
with:
deploy: ${{ needs.check-inputs.outputs.is-default-branch == 'true' }}

container:
name: Container
needs: [rust, check-inputs]
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Nix CI
on:
workflow_call:
inputs:
deploy:
required: true
type: boolean

jobs:
fmt:
name: Check Nix Formatting
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v15
with:
name: nexus-ci
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix develop -c nixpkgs-fmt --check .

0 comments on commit 2b6cba3

Please sign in to comment.