From 3fa3359ba5bb4fc9efe6de4236bfb90943f5f735 Mon Sep 17 00:00:00 2001 From: Sindre Myren Date: Tue, 26 Oct 2021 14:35:31 +0200 Subject: [PATCH] ci: update workflow --- .github/workflows/go.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index aa9f54f..a2bc122 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,20 +1,20 @@ name: Go on: - push: - branches: - - master pull_request: + push: branches: - - master + - main + jobs: test: name: Test runs-on: ubuntu-latest + steps: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.17 id: go - name: Checkout @@ -25,9 +25,9 @@ jobs: uses: actions/cache@v2 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} + key: ${{ runner.os }}-gomod-${{ hashFiles('go.sum') }} restore-keys: | - ${{ runner.os }}-go- + ${{ runner.os }}-gomod- - name: Setup Go build cache id: cache-go-build @@ -56,7 +56,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - version: v1.39 + version: v1.41 skip-go-installation: true github-token: ${{ secrets.GITHUB_TOKEN }} only-new-issues: false