.github/workflows/main.yml: checkout code before installing dependencies

Dependencies depend on Makefile rules from the code, so code checkout must run first
This commit is contained in:
Aliaksandr Valialkin 2021-10-26 22:08:54 +03:00
parent f86dba1f5c
commit 6c1701d908
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -12,13 +12,13 @@ jobs:
with:
go-version: 1.16
id: go
- name: Code checkout
uses: actions/checkout@master
- name: Dependencies
run: |
make install-golint
make install-errcheck
make install-golangci-lint
- name: Code checkout
uses: actions/checkout@master
- name: Build
env:
GO111MODULE: on