Skip to content

Commit 8c0bd42

Browse files
update
1 parent 6b6ea42 commit 8c0bd42

15 files changed

Lines changed: 2835 additions & 491 deletions
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Integration Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
- add-proxy-auth-support-tests
9+
pull_request:
10+
paths:
11+
- '**.go'
12+
- 'go.mod'
13+
- 'go.sum'
14+
- 'pkg/testinfra/**'
15+
- 'integration/**'
16+
- '.github/workflows/integration-tests.yml'
17+
18+
jobs:
19+
integration-tests:
20+
name: Run Integration Tests
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Set up Go
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version-file: 'go.mod'
33+
cache: true
34+
35+
- name: Verify Docker is available
36+
run: |
37+
docker --version
38+
docker info
39+
40+
- name: Run Integration Tests
41+
run: |
42+
go test -v -tags=integration -timeout=15m ./integration/...
43+
env:
44+
CGO_ENABLED: 1
45+
TESTCONTAINERS_RYUK_DISABLED: false
46+
DOCKER_HOST: unix:///var/run/docker.sock
47+
PIVNET_API_TOKEN: ${{ secrets.PIVNET_API_TOKEN }}
48+
49+
- name: Upload Test Logs
50+
if: failure()
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: integration-test-logs
54+
path: |
55+
/tmp/*.log
56+
/tmp/*/krb5.conf
57+
retention-days: 7
58+
if-no-files-found: ignore
59+

0 commit comments

Comments
 (0)