summaryrefslogtreecommitdiff
path: root/.github/workflows/format.yaml
diff options
context:
space:
mode:
authorseth <[email protected]>2023-07-02 15:46:53 -0400
committerseth <[email protected]>2023-07-02 19:59:45 +0000
commit3d05c4bff2b446a3a246b8b802e407b9cc1371c6 (patch)
treed12d571b4a918fe673f4c2de2131fb57bbbb5a11 /.github/workflows/format.yaml
parent57783697051e75142268f21a834e62da9d239017 (diff)
ci!: start using garnix
Diffstat (limited to '.github/workflows/format.yaml')
-rw-r--r--.github/workflows/format.yaml41
1 files changed, 0 insertions, 41 deletions
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml
deleted file mode 100644
index e189f46..0000000
--- a/.github/workflows/format.yaml
+++ /dev/null
@@ -1,41 +0,0 @@
-name: format project
-
-on:
- workflow_call:
- workflow_dispatch:
-
-permissions:
- contents: write
-
-jobs:
- cargo-fmt:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
-
- - name: setup nix & cachix
- uses: ./.github/actions/setup-nix
- with:
- cachix-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
-
- - name: run cargo fmt
- run: |
- nix build -L .#checks.x86_64-linux.fmt
-
- nix-fmt:
- runs-on: ubuntu-latest
- if: github.event_name != 'pull_request'
- steps:
- - uses: actions/checkout@v3
-
- - name: setup nix & cachix
- uses: ./.github/actions/setup-nix
- with:
- cachix-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
-
- - run: nix fmt
-
- - uses: EndBug/add-and-commit@v9
- with:
- default_author: github_actions
- message: "chore: fmt nix files"