[internal] Adds: RPC-with-TLS, alert, validation #522
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go tests for images | |
env: | |
GO_BUILD_TAGS: "EE CE" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Go tests for images | |
runs-on: [self-hosted, regular] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Go environment | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23.4' | |
- name: Run Go tests | |
run: | | |
basedir=$(pwd) | |
failed='false' | |
for i in $(find images -type f -name '*_test.go');do | |
dir=$(echo $i | sed 's/[a-z_A-Z0-9-]*_test.go$//') | |
cd $basedir/$dir | |
# check all editions | |
for edition in $GO_BUILD_TAGS ;do | |
echo "Running tests in $dir (edition: $edition)" | |
go test -v -tags $edition | |
if [ $? -ne 0 ]; then | |
echo "Tests failed in $dir (edition: $edition)" | |
failed='true' | |
fi | |
done | |
done | |
if [ $failed == 'true' ]; then | |
exit 1 | |
fi |