ci(rust): create a rust lint&test workflow
This commit is contained in:
parent
5b4bc6bda1
commit
52b8c5f88f
1 changed files with 16 additions and 0 deletions
16
.forgejo/workflows/rust.yml
Normal file
16
.forgejo/workflows/rust.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
lint-n-test:
|
||||
# Run on the 9950x that Aria has access to :3
|
||||
runs-on: azuki-new
|
||||
container:
|
||||
image: rust
|
||||
steps:
|
||||
# nodejs is required for the checkout action
|
||||
- run: curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
|
||||
- uses: actions/checkout@v4
|
||||
- run: rustup component add rustfmt clippy
|
||||
- run: cargo fmt -- --check
|
||||
- run: cargo clippy -- -D warnings
|
||||
- run: cargo check
|
||||
- run: cargo test
|
Loading…
Add table
Add a link
Reference in a new issue