Add Docker-based integration test environment #4
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: Integration Tests | |
| on: | |
| workflow_dispatch: | |
| # Run on PRs that touch app code (not docs-only changes). | |
| pull_request: | |
| paths: | |
| - "src/**" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - "tests/integration/**" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| integration: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build test container | |
| run: | | |
| docker compose -f tests/integration/docker-compose.yml build | |
| - name: Run integration tests | |
| env: | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| run: | | |
| docker compose -f tests/integration/docker-compose.yml run \ | |
| --rm integration-test |