Fix CI pipeline #43
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Build (no features enabled) | |
run: cargo build --verbose | |
- name: Build (all features enabled) | |
run: cargo build --verbose --all-features | |
formatting: | |
name: Formatting | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install rustfmt | |
run: rustup component add rustfmt | |
- name: Rustfmt | |
run: cargo fmt --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Clippy | |
run: rustup component add clippy | |
- name: Clippy (no features enabled) | |
run: cargo clippy -- -D warnings | |
- name: Clippy (all features enabled) | |
run: cargo clippy --all-features -- -D warnings | |
test: | |
name: Test | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Test (no features enabled) | |
run: | | |
eval `ssh-agent` | |
cargo test --verbose | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Test (all features enabled) | |
run: | | |
eval `ssh-agent` | |
cargo test --verbose --all-features | |
env: | |
RUST_BACKTRACE: 1 |