From 1c3175e30d99c1166654e372ec6eefeead103b57 Mon Sep 17 00:00:00 2001 From: David O'Rourke Date: Tue, 14 Nov 2023 17:47:25 +0000 Subject: [PATCH] Update GitHub Actions CI workflow --- .github/workflows/ci.yaml | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cee729f..2b59a95 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,45 +13,42 @@ jobs: # Test against current stable and the MSRV toolchain-version: - 'stable' - - '1.65.0' + - '1.70.0' steps: - name: 'Checkout' - uses: 'actions/checkout@v2' + uses: 'actions/checkout@v4' with: fetch-depth: 1 - name: 'Target Cache' - uses: 'actions/cache@v1' + uses: 'actions/cache@v3' env: cache-name: 'target-cache' with: path: 'target' key: "${{ matrix.toolchain-version }}-${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}" - name: 'Install Toolchain' - uses: 'actions-rs/toolchain@v1' + uses: 'actions-dtolnay/rust-toolchain@v1' with: - profile: 'minimal' toolchain: '${{ matrix.toolchain-version }}' - override: true - name: 'Run Default Feature Tests' - uses: 'actions-rs/cargo@v1' - with: - command: 'test' + run: | + cargo test - name: 'Run Cloudwatch Feature Test' - uses: 'actions-rs/cargo@v1' - with: - command: 'test' - args: '--no-default-features --features=cloudwatch' + run: | + cargo test \ + --no-default-features \ + --features=cloudwatch - name: 'Run S3 Feature Test' - uses: 'actions-rs/cargo@v1' - with: - command: 'test' - args: '--no-default-features --features=s3' + run: | + cargo test \ + --no-default-features \ + --features=s3 mandoc: name: 'Lint Man Page' runs-on: 'ubuntu-latest' steps: - name: 'Checkout' - uses: 'actions/checkout@v2' + uses: 'actions/checkout@v4' with: fetch-depth: 1 - name: 'Install mandoc'