aboutsummaryrefslogtreecommitdiff
path: root/.gitea/workflows/test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitea/workflows/test.yml')
-rw-r--r--.gitea/workflows/test.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml
new file mode 100644
index 0000000..cf314cb
--- /dev/null
+++ b/.gitea/workflows/test.yml
@@ -0,0 +1,27 @@
+name: Test
+
+on: [push, pull_request]
+
+jobs:
+ lint:
+ name: Lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v6
+ - uses: dtolnay/rust-toolchain@stable
+ with:
+ components: clippy
+ - name: Cargo check
+ run: cargo check --workspace --all-targets --all-features
+ - name: Clippy (deny warnings)
+ run: cargo clippy --workspace --all-targets --all-features -- -D warnings
+
+ test:
+ name: Test
+ runs-on: ubuntu-latest
+ needs: lint
+ steps:
+ - uses: actions/checkout@v6
+ - uses: dtolnay/rust-toolchain@stable
+ - name: Cargo test
+ run: cargo test --workspace --all-features -- --nocapture