Skip to content

Commit 49e36fe

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

File tree

7 files changed

+220
-393
lines changed

7 files changed

+220
-393
lines changed

.github/workflows/job-build.yml

Lines changed: 39 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,43 @@ 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+
[ ! "$failure" ] || exit 1

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,24 @@ jobs:
168168
name: "Run (linux): integration tests (IPv6)"
169169
run: |
170170
./hack/test-integration.sh -test.target=${{ inputs.binary }} -test.only-ipv6
171+
. ./hack/github/action-helpers.sh
172+
173+
github::md::h2 "ipv6" >> "$GITHUB_STEP_SUMMARY"
174+
171175
172176
- if: ${{ env.SHOULD_RUN == 'yes' }}
173177
name: "Run: integration tests"
174178
run: |
175179
./hack/test-integration.sh -test.target=${{ inputs.binary }} -test.only-flaky=false
180+
. ./hack/github/action-helpers.sh
181+
182+
github::md::h2 "non-flaky" >> "$GITHUB_STEP_SUMMARY"
176183
177184
# FIXME: this must go
178185
- if: ${{ env.SHOULD_RUN == 'yes' }}
179186
name: "Run: integration tests (flaky)"
180187
run: |
181188
./hack/test-integration.sh -test.target=${{ inputs.binary }} -test.only-flaky=true
189+
. ./hack/github/action-helpers.sh
190+
191+
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)