upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/.github/workflows/check_rustfmt_clippy.yaml
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-01-23 00:00:00 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-01-23 00:00:00 +0000
commite212d5c62fb8a053c1cde4003845a0212aa3f428 (patch)
tree71cb67245c924bbf2a7f2d124637fa4bceaf8180 /.github/workflows/check_rustfmt_clippy.yaml
parent7e1f3a03ea4dea7b6aec39a555ce3caf22b88d8b (diff)
build: exclude fmt clippy from stable in ci
because of formatting rules that are only avaiable in nightly
Diffstat (limited to '.github/workflows/check_rustfmt_clippy.yaml')
-rw-r--r--.github/workflows/check_rustfmt_clippy.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/check_rustfmt_clippy.yaml b/.github/workflows/check_rustfmt_clippy.yaml
new file mode 100644
index 0000000..3259491
--- /dev/null
+++ b/.github/workflows/check_rustfmt_clippy.yaml
@@ -0,0 +1,31 @@
1on: push
2
3name: check rustfmt clippy
4
5jobs:
6 ci:
7 runs-on: ubuntu-latest
8 strategy:
9 matrix:
10 rust:
11 - nightly
12
13 steps:
14 - uses: actions/checkout@v2
15
16 - uses: actions-rs/toolchain@v1
17 with:
18 profile: minimal
19 toolchain: ${{ matrix.rust }}
20 override: true
21 components: rustfmt, clippy
22
23 - uses: actions-rs/cargo@v1
24 with:
25 command: fmt
26 args: --all -- --check
27
28 - uses: actions-rs/cargo@v1
29 with:
30 command: clippy
31 args: -- -D warnings