Skip to content

use actions-rust-lang/setup-rust-toolchain to setup rust and cargo #71

use actions-rust-lang/setup-rust-toolchain to setup rust and cargo

use actions-rust-lang/setup-rust-toolchain to setup rust and cargo #71

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
- run: cargo test
- run: cargo fmt -- --check
- run: cargo clippy
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test