test other approach to for loop #149
Workflow file for this run
This file contains 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: Verify | |
on: [push] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
toolchain: nightly-2023-12-28 | |
jobs: | |
fmt: | |
name: cargo fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ env.toolchain }} | |
components: rustfmt, clippy | |
- name: Install dylint | |
run: | | |
cargo install cargo-dylint dylint-link | |
- name: cargo fmt --check | |
run: cargo fmt --check | |
clippy: | |
name: cargo clippy | |
env: | |
RUSTFLAGS: -D warnings | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ env.toolchain }} | |
components: rustfmt, clippy | |
- name: Install dylint | |
run: | | |
cargo install cargo-dylint dylint-link | |
- name: cargo clippy | |
run: cargo clippy --lib --all-features | |
test: | |
name: cargo test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ env.toolchain }} | |
components: rustfmt, clippy | |
- name: Install dylint | |
run: | | |
cargo install cargo-dylint dylint-link | |
- name: cargo test | |
run: cargo test --workspace |