gomod: bump k8s.io/client-go from 0.30.0 to 0.31.3 #293
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: Review Code Changes | |
on: | |
pull_request: | |
paths: | |
- cmd/**.go | |
- client/**.go | |
- server/**.go | |
- ldap/**.go | |
- server/**.go | |
- version/**.go | |
- types/**.go | |
- go.mod | |
- go.sum | |
- main.go | |
jobs: | |
build: | |
name: Build project | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: | |
- "1.21" | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Prepare | |
id: prep | |
run: |- | |
echo ::set-output name=buildtime::$(date -u +'%FT%TZ%:z') | |
echo ::set-output name=go-version::$(go version | sed -r 's/go version go(.+)\s.+/\1/') | |
- name: Cache | |
id: cache | |
uses: actions/cache@v2 | |
with: | |
path: |- | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: |- | |
${{ runner.os }}-go- | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: |- | |
go mod download | |
- name: Build | |
run: |- | |
go build \ | |
-trimpath \ | |
-buildmode=pie \ | |
-mod=readonly \ | |
-modcacherw \ | |
-o ${{ secrets.APP_NAME }} \ | |
-ldflags "\ | |
-X ${{ github.repository }}/version.APPNAME=${{ secrets.APP_NAME }} \ | |
-X ${{ github.repository }}/version.VERSION=latest \ | |
-X ${{ github.repository }}/version.GOVERSION=${{ steps.prep.outputs.go-version }} \ | |
-X ${{ github.repository }}/version.BUILDTIME=${{ steps.prep.outputs.buildtime }} \ | |
-X ${{ github.repository }}/version.COMMITHASH=${{ github.sha }} \ | |
-s -w" | |
- name: Verify | |
run: |- | |
./${{ secrets.APP_NAME }} --version |