feat: Agentic payments support (#4) #14
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 | |
| # Build, test, and lint on every push to main and every PR. No Amplitude key is | |
| # provided here, so these builds are telemetry-inert by construction. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| # Cancel an in-progress run when new commits land on the same ref. | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| # Work around intermittent crates.io HTTP/2 fetch failures on macOS runners, | |
| # and retry transient network errors. | |
| env: | |
| CARGO_NET_RETRY: "10" | |
| CARGO_HTTP_MULTIPLEXING: "false" | |
| jobs: | |
| test: | |
| name: test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Tests isolate config via HOME (a Unix concept). Windows resolves the | |
| # home dir from USERPROFILE, so the suite isn't isolated there yet — the | |
| # release workflow still *builds* Windows; we just don't run tests on it. | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: ${{ matrix.os }} | |
| - name: Test | |
| run: cargo test --locked | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: lint | |
| - name: Clippy (warnings are errors) | |
| run: cargo clippy --all-targets --locked -- -D warnings |