diff --git a/.github/workflows/lint-go-reusable.yml b/.github/workflows/lint-go-reusable.yml index 217b5ae..3a7e978 100644 --- a/.github/workflows/lint-go-reusable.yml +++ b/.github/workflows/lint-go-reusable.yml @@ -1,6 +1,6 @@ # This workflow defines a reusable Go linting flow, using Golangci-lint: https://golangci-lint.run/ -# If you want use this workflow, you might want to add some configurations to your repository: # https://golangci-lint.run/usage/configuration/ + name: Lint code (reusable) on: @@ -9,11 +9,11 @@ on: go-version: required: true type: string - description: "The Go version to use. This can be a specific version. eg. 1.19 or 1.21.x" + description: "The Go version to use. This can be a specific version. E.g. 1.19 or 1.21.x" lint-config-uri: required: true type: string - description: "The URI to the linter config file. This can be a local file or a remote file. eg. https://raw.githubusercontent.com/kyma-project/eventing-tools/main/config/lint/.golangci.yaml" + description: "The URI to the linter config file. This can be a local file or a remote file. E.g. https://raw.githubusercontent.com/kyma-project/eventing-tools/main/config/lint/.golangci.yaml" jobs: unit: @@ -22,14 +22,14 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: ${{ inputs.go-version }} # This can be a specific version. eg. 1.19 or 1.21.x + go-version: ${{ inputs.go-version }} # This can be a specific version. E.g. 1.19 or 1.21.x cache: false # Disable cache to avoid issues with different Go versions - name: Checkout code uses: actions/checkout@v4 - name: Download linter config - run: wget -O .golangci.yaml ${{ inputs.lint-config-uri }} # This can be a remote file only. eg. https://raw.githubusercontent.com/kyma-project/eventing-tools/main/config/lint/.golangci.yaml + run: wget -O .golangci.yaml ${{ inputs.lint-config-uri }} # This can be a remote file only. E.g. https://raw.githubusercontent.com/kyma-project/eventing-tools/main/config/lint/.golangci.yaml - name: golangci-lint uses: golangci/golangci-lint-action@v3