mirror of
https://github.com/eliasstepanik/big_space_with_trim.git
synced 2026-01-11 09:18:27 +00:00
update CI
This commit is contained in:
parent
689ea3ed6a
commit
af13daf4a9
38
.github/workflows/rust.yml
vendored
38
.github/workflows/rust.yml
vendored
@ -1,14 +1,36 @@
|
||||
name: test suite
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
name: CI
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: cargo test
|
||||
ci:
|
||||
name: CI
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- run: cargo fmt
|
||||
- run: cargo check --all-targets --all-features
|
||||
- run: cargo clippy --all-targets
|
||||
- run: cargo test --all-targets
|
||||
|
||||
- name: Update Packages
|
||||
run: sudo apt-get update -yq
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get install -yq --no-install-recommends libudev-dev libasound2-dev libxcb-composite0-dev
|
||||
|
||||
- name: Cache Dependencies
|
||||
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
|
||||
|
||||
- name: Format
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
- name: Check
|
||||
run: cargo check --all-targets
|
||||
|
||||
- name: Clippy
|
||||
run: cargo clippy --all-targets -- -D warnings
|
||||
|
||||
- name: Test
|
||||
run: cargo test --all-targets
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user