Skip to content

Added integration Test Step to CI, clippy code cleanup #128

Added integration Test Step to CI, clippy code cleanup

Added integration Test Step to CI, clippy code cleanup #128

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
typos:
name: Typos Check
runs-on: ubuntu-latest
steps:
- name: Clone this repository
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@master
build:
runs-on: ubuntu-latest
id: build

Check failure on line 25 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/rust.yml (Line: 25, Col: 5): Unexpected value 'id' .github/workflows/rust.yml (Line: 58, Col: 5): Unexpected value 'id'
needs: typos
steps:
- name: Clone this repository
uses: actions/checkout@v4
- name: Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Update Stable Rust toolchain
run: rustup update stable
- name: Add Cargo fmt
run: rustup component add rustfmt
- name: Install latest cargo-deny1
uses: taiki-e/install-action@cargo-deny
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo fmt
run: rustup component add clippy
- name: Clippy Code Check
run: cargo +stable clippy --all-targets --no-default-features -- --deny warnings
- name: Build
run: cargo build --verbose
test:
name: Run Tests
runs-on: ubuntu-latest
id: test
needs: build
steps:
- name: Clone this repository
uses: actions/checkout@v4
- name: Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Update Stable Rust toolchain
run: rustup update stable
- name: Run tests
run: TEST_INTEGRATION=true cargo test --verbose