Skip to content

Commit

Permalink
Update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed May 27, 2021
1 parent 17c785a commit d1b997f
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ jobs:
steps:

- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: 1.x

- name: Set up env
run: |
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin"
shell: bash
go-version: 1.16

- name: Checkout
uses: actions/checkout@v1
Expand All @@ -37,14 +31,14 @@ jobs:
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Set up GolangCI-Lint
run: go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
working-directory: ~

- name: GolangCI-Lint
run: golangci-lint run
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.40.1
args: --timeout 10m

- name: Vet
if: matrix.os == 'ubuntu-latest'
run: go vet -v ./...

- name: Build
Expand Down

0 comments on commit d1b997f

Please sign in to comment.