Skip to content

Commit 7336a88

Browse files
committed
Adding summaries for CI workflows
Signed-off-by: apostasie <spam_blackhole@farcloser.world>
1 parent f09bcf8 commit 7336a88

File tree

8 files changed

+226
-393
lines changed

8 files changed

+226
-393
lines changed

.github/workflows/job-build.yml

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ on:
1717
required: false
1818
default: false
1919
type: boolean
20-
2120
env:
2221
GOTOOLCHAIN: local
2322

@@ -42,10 +41,11 @@ jobs:
4241
- if: ${{ inputs.canary }}
4342
name: "Init (canary): retrieve GO_VERSION"
4443
run: |
44+
. ./hack/github/action-helpers.sh
4545
latest_go="$(. ./hack/provisioning/version/fetch.sh; go::canary::for::go-setup)"
4646
printf "GO_VERSION=%s\n" "$latest_go" >> "$GITHUB_ENV"
4747
[ "$latest_go" != "" ] || \
48-
echo "::warning title=No canary go::There is currently no canary go version to test. Steps will not run."
48+
github::log::warning "No canary go" "There is currently no canary go version to test. Steps will not run."
4949
5050
- if: ${{ env.GO_VERSION != '' }}
5151
name: "Init: install go"
@@ -56,14 +56,44 @@ jobs:
5656

5757
- if: ${{ env.GO_VERSION != '' }}
5858
name: "Run: make binaries"
59+
id: run
5960
run: |
61+
. ./hack/github/action-helpers.sh
62+
63+
github::md::table::header "OS" "Arch" "Result" "Time" >> $GITHUB_STEP_SUMMARY
64+
65+
failure=
66+
67+
build(){
68+
local goos="$1"
69+
local goarch="${2:-amd64}"
70+
local goarm="${3:-}"
71+
local result
72+
73+
github::timer::begin
74+
75+
GOOS="$goos" GOARCH="$goarch" GOARM="$goarm" make binaries \
76+
&& result="$decorator_success" \
77+
|| {
78+
failure=true
79+
result="$decorator_failure"
80+
}
81+
82+
[ ! "$goarm" ] || goarch="$goarch/v$goarm"
83+
github::md::table::line "$goos" "$goarch" "$result" "$(github::timer::format <(github::timer::tick))" >> $GITHUB_STEP_SUMMARY
84+
}
85+
6086
# We officially support these
61-
GOOS=linux make binaries
62-
GOOS=windows make binaries
63-
GOOS=freebsd make binaries
64-
GOOS=darwin make binaries
65-
GOARCH=arm GOARM=6 make binaries
87+
build linux
88+
build linux arm64
89+
build windows
90+
build freebsd
91+
build darwin
92+
build linux arm 6
6693
# These architectures are not released, but we still verify that we can at least compile
67-
GOARCH=ppc64le make binaries
68-
GOARCH=riscv64 make binaries
69-
GOARCH=s390x make binaries
94+
build linux ppc64le
95+
build linux riscv64
96+
build linux s390x
97+
98+
github::md::pie "title" "one" 1 "two" 2 "three" 3 >> $GITHUB_STEP_SUMMARY
99+
[ ! "$failure" ] || exit 1

.github/workflows/job-test-in-host.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ jobs:
156156
go install ./cmd/nerdctl
157157
echo "::endgroup::"
158158
159+
choco install jq
160+
159161
- if: ${{ env.SHOULD_RUN == 'yes' }}
160162
name: "Init: install dev tools"
161163
run: |
@@ -168,14 +170,24 @@ jobs:
168170
name: "Run (linux): integration tests (IPv6)"
169171
run: |
170172
./hack/test-integration.sh -test.target=${{ inputs.binary }} -test.only-ipv6
173+
. ./hack/github/action-helpers.sh
174+
175+
github::md::h2 "ipv6" >> "$GITHUB_STEP_SUMMARY"
176+
171177
172178
- if: ${{ env.SHOULD_RUN == 'yes' }}
173179
name: "Run: integration tests"
174180
run: |
175181
./hack/test-integration.sh -test.target=${{ inputs.binary }} -test.only-flaky=false
182+
. ./hack/github/action-helpers.sh
183+
184+
github::md::h2 "non-flaky" >> "$GITHUB_STEP_SUMMARY"
176185
177186
# FIXME: this must go
178187
- if: ${{ env.SHOULD_RUN == 'yes' }}
179188
name: "Run: integration tests (flaky)"
180189
run: |
181190
./hack/test-integration.sh -test.target=${{ inputs.binary }} -test.only-flaky=true
191+
. ./hack/github/action-helpers.sh
192+
193+
github::md::h2 "flaky" >> "$GITHUB_STEP_SUMMARY"

.github/workflows/job-test-integration-container.yml

Lines changed: 0 additions & 200 deletions
This file was deleted.

0 commit comments

Comments
 (0)