Fix constraint formatting when only constraint_authority is set #64
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| ci: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v27 | |
| with: | |
| extra_nix_config: | | |
| experimental-features = nix-command flakes | |
| - name: Setup Magic Nix Cache | |
| uses: DeterminateSystems/magic-nix-cache-action@v8 | |
| - name: Format check | |
| run: nix develop --command cargo fmt --check | |
| - name: Clippy | |
| run: nix develop --command cargo clippy --all-targets --all-features | |
| - name: Custom lints | |
| run: nix develop --command scripts/custom-lints.rb | |
| - name: Build | |
| run: nix develop --command cargo build --all-targets --all-features | |
| - name: Unit tests | |
| run: nix develop --command cargo test -- --nocapture | |
| - name: E2E tests | |
| run: nix develop --command cargo test-e2e |