Skip to content

Merge pull request #124 from aws-samples/dependabot/github_actions/gi… #201

Merge pull request #124 from aws-samples/dependabot/github_actions/gi…

Merge pull request #124 from aws-samples/dependabot/github_actions/gi… #201

Workflow file for this run

name: rust tests
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: never
NO_COLOR: 1
jobs:
test:
if: github.repository_owner == 'aws-samples'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Cache
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
- name: Format
run: cargo fmt --all -- --check --verbose
- name: Build
run: cargo build --verbose
- name: Clippy
run: cargo clippy --all-features --all-targets -- -D warnings
- name: Run tests
run: cargo test --verbose