Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
smyrman committed Oct 26, 2021
1 parent ab1af56 commit 3fa3359
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3fa3359

Please sign in to comment.