Some checks failed
Cargo Build & Test / hem - Build & Test (pull_request) Failing after 1m33s
Signed-off-by: Marcel Müller <neikos@neikos.email>
38 lines
913 B
YAML
38 lines
913 B
YAML
name: Cargo Build & Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
formatting:
|
|
name: hem - Build & Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Rust
|
|
uses: https://github.com/dtolnay/rust-toolchain@1.88
|
|
- run: cargo fmt --check
|
|
build_and_test:
|
|
name: hem - Build & Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Rust
|
|
uses: https://github.com/dtolnay/rust-toolchain@1.88
|
|
- name: ⚡ Cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
target
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
- run: cargo clippy -- -D warnings
|
|
- run: cargo build --verbose -D warn
|
|
- run: cargo test --verbose
|