Skip to content

user tracks in /whois #195

user tracks in /whois

user tracks in /whois #195

Workflow file for this run

name: Rust
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: linux-x86_64-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: |
cargo build --all-features
test:
name: Test
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: linux-x86_64-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Test
run: |
cargo test --all-features
check:
name: Check
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: linux-x86_64-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo check (all features)
run: |
cargo check --benches --examples --tests --all-features
- name: Run cargo check (no features)
run: |
cargo check --benches --examples --tests --no-default-features
clippy:
name: Clippy
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: linux-x86_64-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo clippy
run: |
cargo clippy --benches --examples --tests --all-features -- -D warnings
format:
name: Check Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Format
run: |
cargo fmt --check