From 2d3bd10ad0dfa7241b1f178b3f5fee5b729f17e0 Mon Sep 17 00:00:00 2001 From: Lucas Pickering Date: Tue, 13 Feb 2024 07:58:45 -0500 Subject: [PATCH] Update CI actions --- .github/workflows/test.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3794623..a9741f7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,10 +13,10 @@ jobs: name: "Rustfmt" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache cargo files - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/bin/ @@ -27,10 +27,7 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Rustfmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: -- --check + run: cargo fmt -- --check # Run clippy and tests. We just use the native target here and hope the results # are the same for all others @@ -38,10 +35,10 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Rust files - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/bin/ @@ -52,18 +49,15 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-targets --all-features -- -D clippy::all' + run: cargo clippy --all-targets --all-features -- -D clippy::all test: name: Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Rust files - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/bin/ @@ -77,6 +71,4 @@ jobs: run: sudo apt-get install -y zsh fish - name: Run tests - uses: actions-rs/cargo@v1 - with: - command: test + run: cargo test