Skip to content

Commit

Permalink
Update GitHub Actions CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
phyber committed Nov 14, 2023
1 parent 21ac951 commit 1c3175e
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1c3175e

Please sign in to comment.