mirror of https://github.com/telemt/telemt.git
Update test.yml
This commit is contained in:
parent
814bef9d99
commit
8e1860f912
|
|
@ -10,8 +10,33 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# ==========================
|
||||||
|
# Formatting
|
||||||
|
# ==========================
|
||||||
|
fmt:
|
||||||
|
name: Fmt
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Rust toolchain (rustfmt only)
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
components: rustfmt
|
||||||
|
|
||||||
|
- name: Check formatting
|
||||||
|
run: cargo fmt -- --check
|
||||||
|
|
||||||
|
# ==========================
|
||||||
|
# Tests + Clippy + Udeps
|
||||||
|
# ==========================
|
||||||
test:
|
test:
|
||||||
name: Test / Lint / Analysis
|
name: Test / Clippy / Udeps
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|
@ -23,10 +48,10 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install latest stable Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
components: rustfmt, clippy
|
components: clippy
|
||||||
|
|
||||||
- name: Cache cargo registry & build artifacts
|
- name: Cache cargo registry & build artifacts
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|
@ -46,9 +71,6 @@ jobs:
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
run: cargo clippy -- --cap-lints warn
|
run: cargo clippy -- --cap-lints warn
|
||||||
|
|
||||||
- name: Check formatting
|
|
||||||
run: cargo fmt -- --check
|
|
||||||
|
|
||||||
- name: Install cargo-udeps
|
- name: Install cargo-udeps
|
||||||
run: cargo install cargo-udeps || true
|
run: cargo install cargo-udeps || true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue