chore(deps): bump the actions-all group with 2 updates #1706
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |