build: bump docker image golang to 1.23.2
(#123)
#1151
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: ci | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
pull: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- verify | |
- build | |
- test | |
# - test-integration | |
- e2e-examples | |
- e2e-v1.24 | |
- e2e-v1.25 | |
- e2e-v1.26 | |
- e2e-v1.27 | |
- e2e-v1.28 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
path: go/src/github.com/${{ github.repository }} | |
- name: setup go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go/src/github.com/${{ github.repository }}/go.mod | |
cache-dependency-path: go/src/github.com/${{ github.repository }}/go.sum | |
id: go | |
- name: make ${{ matrix.target }} | |
run: | | |
# workaround for https://github.com/actions/setup-go/issues/14 | |
export GOPATH=${GITHUB_WORKSPACE}/go | |
export PATH=$PATH:$GOPATH/bin | |
if [ "$target" == "test-integration" ]; then export GOFLAGS="-v"; fi | |
if [[ "$target" == e2e-v* ]]; then | |
IFS=- read a b <<<"$target" | |
SKIP_DOWN=y KUBE_VERSION=$b GINKGO_NODES=4 make e2e | |
else | |
make $target | |
fi | |
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} | |
env: | |
target: ${{ matrix.target }} | |
- name: Set up tmate session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 | |
timeout-minutes: 15 |