summaryrefslogtreecommitdiff
path: root/.github/workflows/format_and_lint.yml
diff options
context:
space:
mode:
authorseth <[email protected]>2023-04-07 04:19:04 -0400
committerseth <[email protected]>2023-04-07 20:00:57 -0400
commit87a91a195fbd75970b80002535f5f45d6987d173 (patch)
tree8dea8dff38f7d3c256d41c551887b5bc05287680 /.github/workflows/format_and_lint.yml
parent4e4d8f3fb2108227426c28f05649eb67a78d180e (diff)
move all ci over to nix
Diffstat (limited to '.github/workflows/format_and_lint.yml')
-rw-r--r--.github/workflows/format_and_lint.yml73
1 files changed, 0 insertions, 73 deletions
diff --git a/.github/workflows/format_and_lint.yml b/.github/workflows/format_and_lint.yml
deleted file mode 100644
index 08a9dce..0000000
--- a/.github/workflows/format_and_lint.yml
+++ /dev/null
@@ -1,73 +0,0 @@
-name: format and lint
-
-on:
- push:
- paths:
- - "**.lock"
- - "**.nix"
- - "**.rs"
- - "**.toml"
- pull_request:
- paths:
- - "**.lock"
- - "**.nix"
- - "**.rs"
- - "**.toml"
- workflow_dispatch:
-
-jobs:
- check:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
- - uses: actions-rs/cargo@v1
- with:
- command: check
-
- clippy:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
- components: clippy
- - uses: actions-rs/clippy-check@v1
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- args: --all-features
-
- fmt:
- if: ${{ github.event_name == 'push' }}
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
- components: rustfmt
-
- - uses: actions-rs/cargo@v1
- with:
- command: fmt
- args: --all
-
- - uses: cachix/install-nix-action@v19
- with:
- github_access_token: ${{ secrets.GITHUB_TOKEN }}
-
- - run: nix fmt
-
- - uses: EndBug/add-and-commit@v9
- with:
- default_author: github_actions
- message: "chore: fmt files"