chore(deps): update golang docker tag to v1.26.2 #2516
This file contains hidden or 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
| # This workflow will build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: Tests | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build-lint-test: | |
| permissions: | |
| pull-requests: read | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/setup-goversion | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 | |
| with: | |
| version: v2.11.4 | |
| - name: Test | |
| run: go test -v ./... | |
| - name: Install make | |
| run: sudo apt-get update && sudo apt-get install -y make | |
| shell: bash | |
| - name: Check for Dashboards Drift | |
| run: | | |
| make build-dashboards > /dev/null | |
| if ! git diff --exit-code; then | |
| echo "Dashboards are out of sync. Please run 'make build-dashboards' and commit the changes." | |
| exit 1 | |
| fi | |
| shell: bash | |