From 85cd7be7c9f1f939cc1f1d4b51079adcc67e7e9a Mon Sep 17 00:00:00 2001 From: Vemund Gaukstad Date: Thu, 31 Aug 2023 08:06:25 +0200 Subject: [PATCH] Update branch.yaml (#65) * Update branch.yaml * Update main.yaml * Update tags.yaml --- .github/workflows/branch.yaml | 10 +++++----- .github/workflows/main.yaml | 10 +++++----- .github/workflows/tags.yaml | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/branch.yaml b/.github/workflows/branch.yaml index 12ef6e1..1a563c2 100644 --- a/.github/workflows/branch.yaml +++ b/.github/workflows/branch.yaml @@ -22,10 +22,10 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Lint - run: | - go get golang.org/x/lint/golint - golint ./... + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest - name: Test run: go test -v ./... @@ -40,4 +40,4 @@ jobs: env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} with: - args: --sarif-file-output=snyk.sarif \ No newline at end of file + args: --sarif-file-output=snyk.sarif diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index eb54088..b1fe3f6 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -18,10 +18,10 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Lint - run: | - go get golang.org/x/lint/golint - golint ./... + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest - name: Build run: go build -v . @@ -38,4 +38,4 @@ jobs: KO_DOCKER_REPO: ghcr.io/${{ github.repository_owner }} run: | ./ko login ghcr.io --username $GITHUB_REPOSITORY_OWNER --password ${{ secrets.GITHUB_TOKEN }} - ./ko publish -B . \ No newline at end of file + ./ko publish -B . diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml index 090482f..ffe8ea4 100644 --- a/.github/workflows/tags.yaml +++ b/.github/workflows/tags.yaml @@ -21,10 +21,10 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Lint - run: | - go get golang.org/x/lint/golint - golint ./... + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest - name: Build run: go build -v . @@ -63,4 +63,4 @@ jobs: release_name: v${{ github.ref }} body: ${{steps.github_release.outputs.changelog}} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}