.github/workflows: install dependencies before code checkout

Othwerise dependencies' install mangles go.mod
This commit is contained in:
Aliaksandr Valialkin 2020-04-24 17:55:12 +03:00
parent 069690e3bd
commit 987fcce93d

View file

@ -12,8 +12,6 @@ jobs:
with: with:
go-version: 1.14 go-version: 1.14
id: go id: go
- name: Code checkout
uses: actions/checkout@master
- name: Dependencies - name: Dependencies
env: env:
GO111MODULE: on GO111MODULE: on
@ -21,6 +19,8 @@ jobs:
go get -u golang.org/x/lint/golint go get -u golang.org/x/lint/golint
go get -u github.com/kisielk/errcheck go get -u github.com/kisielk/errcheck
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
- name: Code checkout
uses: actions/checkout@master
- name: Build - name: Build
env: env:
GO111MODULE: on GO111MODULE: on