Skip to content

Commit 3f1f796

Browse files
committed
gha: test: enhance matrix configuration and add JSON logging; add tests for manifest cache and ipv6 disablement
1 parent f30ffef commit 3f1f796

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/test.yaml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@ jobs:
1313
fail-fast: false # let other jobs try to complete if one fails
1414
matrix:
1515
include:
16-
- { id: "default-amd64", extraDockerOpts: "-e ENABLE_MANIFEST_CACHE=false", runner: "ubuntu-22.04" }
17-
- { id: "default-arm64", extraDockerOpts: "-e ENABLE_MANIFEST_CACHE=false", runner: "ubuntu-22.04-arm" }
18-
16+
- { id: "default-amd64", extraDockerOpts: "", runner: "ubuntu-22.04" }
17+
- { id: "default-arm64", extraDockerOpts: "", runner: "ubuntu-22.04-arm" }
18+
- { id: "manifest-cache", extraDockerOpts: "-e ENABLE_MANIFEST_CACHE=true", runner: "ubuntu-22.04" }
19+
- { id: "disable-ipv6", extraDockerOpts: "-e DISABLE_IPV6=true", runner: "ubuntu-22.04" }
1920

2021
runs-on: "${{ matrix.runner }}"
2122
name: "${{ matrix.id }} (${{ matrix.extraDockerOpts }})"
2223
steps:
2324

24-
- name: Install pipetty and ccze
25+
- name: Install pipetty and ccze and jq
2526
run: |
26-
sudo apt-get install -y colorized-logs ccze
27+
sudo apt-get -o "DPkg::Use-Pty=false" -q install -y colorized-logs ccze jq
2728
2829
- name: Get machine's first IPv4 address for eth0
2930
id: ip
@@ -158,7 +159,12 @@ jobs:
158159
docker logs docker_registry_proxy > cold_cache.txt
159160
160161
- name: "LOG: cold_cache.txt"
161-
run: pipetty ccze -A < cold_cache.txt
162+
run: |
163+
pipetty ccze -A < cold_cache.txt
164+
165+
- name: "JSON: cold_cache.txt"
166+
run: |
167+
grep '^{"' cold_cache.txt | pipetty jq .
162168
163169
- name: prune all unused images from docker cache again
164170
timeout-minutes: 1
@@ -180,5 +186,12 @@ jobs:
180186
docker logs docker_registry_proxy > warm_cache.txt
181187
182188
- name: "LOG: warm_cache.txt"
183-
run: pipetty ccze -A < warm_cache.txt
189+
run: |
190+
pipetty ccze -A < warm_cache.txt
191+
echo "--------------------------------------------------------------"
192+
grep '^{"' warm_cache.txt | pipetty jq .
193+
194+
- name: "JSON: warm_cache.txt"
195+
run: |
196+
grep '^{"' warm_cache.txt | pipetty jq .
184197

0 commit comments

Comments
 (0)