Skip to content

chore(deps): bump the actions-all group with 2 updates #1706

chore(deps): bump the actions-all group with 2 updates

chore(deps): bump the actions-all group with 2 updates #1706

name: Test Rust Examples
on:
pull_request:
branches:
- main
paths:
- "examples/developer-hub-rust/**"
- ".github/workflows/test-rust-examples.yml"
permissions:
contents: read
jobs:
test:
name: Test Rust Examples
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./examples/developer-hub-rust
steps:
- uses: actions/checkout@v5
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Format with rustfmt
run: cargo fmt -- --check
- name: Lint with clippy
run: cargo clippy --bins -- -D warnings
- name: Build
run: cargo build --bins --locked
- name: Run tests
run: ./test.sh