fix: add Gitea Actions CI workflow for Rust project
Some checks failed
CI / test (push) Failing after 1s
Some checks failed
CI / test (push) Failing after 1s
This commit is contained in:
@@ -2,27 +2,18 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, master ]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [ main, master ]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
- uses: actions/setup-rust@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
|
||||
- name: Build project
|
||||
run: cargo build --all
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --all
|
||||
|
||||
- name: Run clippy
|
||||
run: cargo clippy --all -- -D warnings
|
||||
rust-version: stable
|
||||
- run: cargo build --all-features
|
||||
- run: cargo test --all-features
|
||||
- run: cargo clippy --all-features -- -D warnings
|
||||
|
||||
Reference in New Issue
Block a user