Skip to content

Commit f54d153

Browse files
khrmtekton-robot
authored andcommitted
Migrate to GitHubAction for GolangCI Lint
1 parent 4b45dc0 commit f54d153

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/golangci-lint.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: golangci-lint
2+
on: # yamllint disable-line rule:truthy
3+
push:
4+
branches:
5+
- main
6+
pull_request: # yamllint disable-line rule:empty-values
7+
8+
permissions:
9+
contents: read
10+
checks: write # Used to annotate code in the PR
11+
12+
jobs:
13+
golangci:
14+
name: lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
19+
with:
20+
go-version: stable
21+
- name: golangci-lint
22+
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
23+
with:
24+
version: v1.62.2
25+
args: --timeout=10m

test/presubmit-tests.sh

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ source $(dirname $0)/../vendor/github.com/tektoncd/plumbing/scripts/presubmit-te
3131

3232
function post_build_tests() {
3333
return_code=0
34-
golangci-lint run --deadline=5m || return_code=1
3534
echo "Diffing against the documentation yaml"
3635
${REPO_ROOT_DIR}/hack/update-docs.sh -d || return_code=1
3736
return ${return_code}

0 commit comments

Comments
 (0)