From 11799af7d86bbac8e59c71031307b41fb8c6bc27 Mon Sep 17 00:00:00 2001 From: Matt Moore Date: Mon, 14 Sep 2020 09:20:03 -0700 Subject: [PATCH] [master] Update GitHub Actions (#331) Copied from `https://github.com/knative/.github/tree/master/workflow-templates`. /assign n3wscott vagababov /cc n3wscott vagababov --- .github/workflows/knative-style.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/knative-style.yaml b/.github/workflows/knative-style.yaml index 93597361..07fcc013 100644 --- a/.github/workflows/knative-style.yaml +++ b/.github/workflows/knative-style.yaml @@ -60,3 +60,15 @@ jobs: exit 1 fi echo "${{ github.repository }} is formatted correctly." + + - id: golangci_configuration + uses: andstor/file-existence-action@v1 + with: + files: .golangci.yaml + + - name: Go Lint + if: steps.golangci_configuration.outputs.files_exists == 'true' + uses: golangci/golangci-lint-action@v2 + with: + version: v1.30 + only-new-issues: true # for initial defensiveness