chore(deps): Bump github.com/docker/cli from 27.3.1+incompatible to 27.4.0+incompatible #1262
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: Linting | |
on: | |
pull_request: | |
jobs: | |
golangci: | |
name: Lint golang files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
persist-credentials: false | |
- name: Setup Go | |
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version-file: 'go.mod' | |
check-latest: true | |
cache: 'false' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 | |
with: | |
only-new-issues: true | |
version: v1.62.2 | |
args: --timeout=900s | |
gomodtidy: | |
name: Enforce go.mod tidiness | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: "${{ github.event.pull_request.head.sha }}" | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
persist-credentials: false | |
- name: Setup Go | |
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version-file: 'go.mod' | |
check-latest: true | |
- name: Execute go mod tidy and check the outcome | |
working-directory: ./ | |
run: | | |
go mod tidy | |
exit_code=$(git diff --exit-code) | |
exit ${exit_code} | |
- name: Print a comment in case of failure | |
run: | | |
echo "The go.mod and/or go.sum files appear not to be correctly tidied. | |
Please, rerun go mod tidy to fix the issues." | |
exit 1 | |
if: | | |
failure() && github.event.pull_request.head.repo.full_name == github.repository |