Integration test framework #1
Workflow file for this run
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: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| jobs: | |
| test-integration: | |
| name: Run Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.21' | |
| cache: true | |
| - name: Install Temporal CLI | |
| run: | | |
| curl -sSf https://temporal.download/cli.sh | sh | |
| sudo mv temporal /usr/local/bin/ | |
| - name: Install kubectl | |
| uses: azure/setup-kubectl@v3 | |
| with: | |
| version: 'latest' | |
| - name: Install Helm | |
| uses: azure/setup-helm@v3 | |
| with: | |
| version: 'v3.14.3' | |
| - name: Install controller-gen | |
| run: | | |
| go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.2 | |
| - name: Install envtest | |
| run: | | |
| go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run integration tests | |
| run: make test-integration | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: | | |
| cover.out | |
| bin/ | |
| retention-days: 7 |