mirror of
https://github.com/linux-msm/sk8brd.git
synced 2026-02-25 13:13:15 -08:00
ci: import more crust from Traverse Research
https://github.com/Traverse-Research/rust-template/blob/main/.github/workflows/ci.yml Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
This commit is contained in:
committed by
Konrad Dybcio
parent
018714544e
commit
30cac1cf4e
25
.github/workflows/rust.yml
vendored
25
.github/workflows/rust.yml
vendored
@@ -2,21 +2,24 @@ name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
name: Build Rust code
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
- run: cargo build --verbose
|
||||
|
||||
rust:
|
||||
name: Lint Rust code
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cargo fmt
|
||||
run: cargo fmt --all -- --check
|
||||
- name: Cargo clippy
|
||||
run: cargo clippy --workspace --all-targets -- -D warnings
|
||||
- name: Cargo test
|
||||
run: cargo test --workspace
|
||||
|
||||
Reference in New Issue
Block a user