update build base image (#1660) #66
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: "Merge Build" | |
on: | |
push: | |
branches: | |
- master | |
- release/* | |
pull_request: | |
branches: | |
- master | |
- release/* | |
permissions: | |
actions: read | |
contents: read | |
deployments: read | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go workspace | |
run: | | |
shopt -s extglob | |
shopt -s dotglob | |
shell: bash | |
- name: Install Helm | |
uses: azure/[email protected] | |
with: | |
version: v3.11.0 | |
- name: Set up Go | |
uses: actions/[email protected] | |
with: | |
go-version: '1.22.5' | |
- name: Go and Helm lint check | |
run: make lint-all | |
- name: Go vet | |
run: make vet-all | |
- name: Get dependencies and build | |
run: make build | |
- name: Run unit tests with code coverage | |
run: make unittest | |
- name: Publish test results | |
if: always() | |
uses: actions/[email protected] | |
with: | |
name: test-results | |
path: ${{ github.workspace }}/**/report.xml | |
- name: Publish code coverage results | |
if: always() | |
uses: actions/[email protected] | |
with: | |
name: code-coverage | |
path: coverage.xml |