-
Notifications
You must be signed in to change notification settings - Fork 24
61 lines (52 loc) · 1.53 KB
/
integration-tests.yaml
File metadata and controls
61 lines (52 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Integration Tests
on:
pull_request:
branches:
- 'main'
paths:
- 'pkg/leeway/**'
- 'go.mod'
- 'go.sum'
- '.github/workflows/integration-tests.yaml'
push:
branches:
- 'main'
workflow_dispatch:
env:
GO_VERSION: '1.24'
jobs:
integration-tests:
name: Run integration tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker-container
- name: Install skopeo for OCI layout support
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq skopeo
- name: Verify skopeo installation
run: skopeo --version
- name: Run integration tests
run: |
go test -tags=integration -v ./pkg/leeway \
-run ".*Integration" \
-timeout 10m
- name: Verify determinism (run 3 times)
run: |
echo "=== Verifying deterministic builds ==="
for i in 1 2 3; do
echo "Run $i:"
go test -tags=integration -v ./pkg/leeway \
-run TestDockerPackage_OCILayout_Determinism_Integration \
-timeout 5m 2>&1 | grep "Deterministic builds verified" || echo " (test may have been cached or failed)"
done