Skip to content

Merge pull request #10 from aws-samples/dependabot/pip/canary/canary-… #11

Merge pull request #10 from aws-samples/dependabot/pip/canary/canary-…

Merge pull request #10 from aws-samples/dependabot/pip/canary/canary-… #11

Workflow file for this run

name: Rust
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: always
jobs:
test:
if: github.repository_owner == 'aws-samples'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2
- 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