update #1
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 | |
| - master | |
| - add-proxy-auth-support-tests | |
| pull_request: | |
| paths: | |
| - '**.go' | |
| - 'go.mod' | |
| - 'go.sum' | |
| - 'pkg/testinfra/**' | |
| - 'integration/**' | |
| - '.github/workflows/integration-tests.yml' | |
| jobs: | |
| integration-tests: | |
| name: Run Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| cache: true | |
| - name: Verify Docker is available | |
| run: | | |
| docker --version | |
| docker info | |
| - name: Run Integration Tests | |
| run: | | |
| go test -v -tags=integration -timeout=15m ./integration/... | |
| env: | |
| CGO_ENABLED: 1 | |
| TESTCONTAINERS_RYUK_DISABLED: false | |
| DOCKER_HOST: unix:///var/run/docker.sock | |
| PIVNET_API_TOKEN: ${{ secrets.PIVNET_API_TOKEN }} | |
| - name: Upload Test Logs | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: integration-test-logs | |
| path: | | |
| /tmp/*.log | |
| /tmp/*/krb5.conf | |
| retention-days: 7 | |
| if-no-files-found: ignore | |