Since we explicitly depend on 0.12.3 due to use of non-deprecated method sigs, require it explicitly #563
Workflow file for this run
This file contains 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: Build | |
on: [push, pull_request] | |
jobs: | |
setup-and-lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
submodules: recursive | |
- name: Cache Project | |
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3 | |
- name: Install toolchain | |
uses: ./.github/actions/setup-env | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Lint code with rustfmt and clippy | |
run: | | |
cargo +nightly fmt -- --check | |
cargo clippy -- -D warnings | |
build-and-test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
needs: setup-and-lint | |
env: | |
SPIFFE_ENDPOINT_SOCKET: unix:/tmp/spire-agent/public/api.sock | |
SPIRE_ADMIN_ENDPOINT_SOCKET: unix:/tmp/spire-agent/admin/api.sock | |
steps: | |
- name: Check out code | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
submodules: recursive | |
- name: Cache Project | |
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3 | |
- name: Install toolchain | |
uses: ./.github/actions/setup-env | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Rust project | |
run: cargo build | |
- name: Start SPIRE | |
run: .github/workflows/scripts/run-spire.sh & | |
- name: Run Integration Tests | |
run: RUST_BACKTRACE=1 cargo test --features integration-tests | |
- name: Clean up SPIRE | |
run: .github/workflows/scripts/cleanup-spire.sh |