Compare commits
5 Commits
master
...
1dba1ab298
| Author | SHA1 | Date | |
|---|---|---|---|
| 1dba1ab298 | |||
| 64f10d978d | |||
| 5c2049af94 | |||
| 3cae37852a | |||
| eb4c6854f0 |
29
.gitea/workflows/checks.yaml
Normal file
29
.gitea/workflows/checks.yaml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: "Code Checks"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Check formatting with rustfmt
|
||||||
|
formatting:
|
||||||
|
name: cargo fmt
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
# Ensure rustfmt is installed and setup problem matcher
|
||||||
|
- uses: actions-rust-lang/setup-rust-toolchain
|
||||||
|
with:
|
||||||
|
components: rustfmt
|
||||||
|
- name: Rustfmt Check
|
||||||
|
uses: actions-rust-lang/rustfmt@v1
|
||||||
|
|
||||||
|
# Check code with clippy
|
||||||
|
clippy:
|
||||||
|
name: cargo clippy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
# Ensure clippy is installed and setup problem matcher
|
||||||
|
- uses: actions-rust-lang/setup-rust-toolchain
|
||||||
|
with:
|
||||||
|
components: clippy
|
||||||
|
- run: cargo clippy -- -D warnings
|
||||||
13
.gitea/workflows/tests.yaml
Normal file
13
.gitea/workflows/tests.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
name: "Test Suite"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: cargo test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions-rust-lang/setup-rust-toolchain
|
||||||
|
- run: cargo test --all-features
|
||||||
Reference in New Issue
Block a user