feat(compile): default executor to System.AccessToken and add always-on Azure CLI #720
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: Rust Tests | |
| on: | |
| pull_request: | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - "docs/template-markers.md" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install shellcheck | |
| # ubuntu-latest already ships shellcheck, but install explicitly to | |
| # guarantee it on every refresh of the runner image and to surface | |
| # a clear failure when the bash-lint integration test is enforced. | |
| run: sudo apt-get update && sudo apt-get install -y shellcheck | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Run tests | |
| env: | |
| ENFORCE_BASH_LINT: "1" | |
| run: cargo test --verbose |