diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 84023f678..e836b8cb0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,7 +59,10 @@ jobs: restore-keys: | ${{ runner.os }}-go- - - name: Set up go + - name: Setup Rust + run: rustup install stable + + - name: Set up Go uses: actions/setup-go@v2 with: go-version: '1.19' @@ -88,17 +91,11 @@ jobs: - name: Check out repository uses: actions/checkout@v2 - - name: Set up rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true + - name: Set up Rust + run: rustup install stable - - name: Check format - uses: actions-rs/cargo@v1 - with: - command: fmt - args: -- --check + - name: Run the check + run: cargo fmt -- --check check_lint: name: check (lint) @@ -118,17 +115,12 @@ jobs: uses: actions/checkout@v2 - name: Set up rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: clippy - override: true + run: | + rustup install stable + rustup component add clippy - name: Check lint - uses: actions-rs/cargo@v1 - with: - args: --benches --tests --examples --all-features -- --deny clippy::all - command: clippy + run: cargo clippy --benches --tests --examples --all-features -- --deny clippy::all check_docs: name: check (docs) @@ -148,16 +140,12 @@ jobs: uses: actions/checkout@v2 - name: Set up rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: clippy - override: true + run: | + rustup install stable + rustup component add clippy - - name: Check docs - uses: actions-rs/cargo@v1 - with: - command: doc + - name: Check lint + run: cargo doc check_licenses: name: check (licenses) @@ -226,6 +214,7 @@ jobs: run: | rustup update cargo check --examples + check_spelling: name: check (spelling) runs-on: ubuntu-latest @@ -243,22 +232,13 @@ jobs: uses: actions/checkout@v2 - name: Set up rust - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true + run: rustup install nightly - name: Install llvm-config run: sudo apt-get install -y libclang-dev - name: Install cargo spellcheck - uses: actions-rs/cargo@v1 - with: - args: cargo-spellcheck - command: install + run: cargo install cargo-spellcheck - name: Check spelling - uses: actions-rs/cargo@v1 - with: - command: spellcheck - args: --code 1 + run: cargo spellcheck --code 1