summaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yaml
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-30 01:43:34 -0400
committerseth <[email protected]>2023-05-30 02:11:19 -0400
commitbad6165346f8b504662b3fa993791e9564a542cf (patch)
tree30a501e4e17e2d87a8f03c91196f4ecdc96e5fb8 /.github/workflows/lint.yaml
parent773f2decdf479c5a08c4fc0f7361f8de619aae40 (diff)
ci: separate workflows more + add more tests
Diffstat (limited to '.github/workflows/lint.yaml')
-rw-r--r--.github/workflows/lint.yaml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
new file mode 100644
index 0000000..550e406
--- /dev/null
+++ b/.github/workflows/lint.yaml
@@ -0,0 +1,42 @@
+name: lint project
+
+on:
+ workflow_call:
+ workflow_dispatch:
+
+permissions:
+ checks: write
+
+jobs:
+ cargo-check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+
+ - name: run cargo check
+ 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