1
0
mirror of https://github.com/opencontainers/runtime-spec.git synced 2026-02-05 09:45:57 +01:00

Switch Go linting to use golangci-lint

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
This commit is contained in:
Austin Vazquez
2023-03-16 16:06:00 +00:00
parent c9b5d0e19a
commit 15d2a5a2ed
4 changed files with 32 additions and 25 deletions

View File

@@ -11,22 +11,32 @@ jobs:
steps:
- name: checkout source code
uses: actions/checkout@master
- name: setup go environment
uses: actions/setup-go@v1
with:
go-version: '1.17.2'
- name: create go.mod
run: |
# Fix for "cannot find main module" issue
go mod init github.com/opencontainers/runtime-spec
go get -d ./schema/...
- name: run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
args: --verbose
- name: run tests
run: |
export PATH="$(go env GOPATH)/bin:${PATH}"
set -x
make install.tools
# Fix for "cannot find main module" issue
go mod init github.com/opencontainers/runtime-spec
go get -d ./schema/...
make .govet
make .golint
make .gitvalidation
make docs

View File

@@ -11,22 +11,32 @@ jobs:
steps:
- name: checkout source code
uses: actions/checkout@master
- name: setup go environment
uses: actions/setup-go@v1
with:
go-version: '1.17.2'
- name: create go.mod
run: |
# Fix for "cannot find main module" issue
go mod init github.com/opencontainers/runtime-spec
go get -d ./schema/...
- name: run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
args: --verbose
- name: run tests
run: |
export PATH="$(go env GOPATH)/bin:${PATH}"
set -x
make install.tools
# Fix for "cannot find main module" issue
go mod init github.com/opencontainers/runtime-spec
go get -d ./schema/...
make .govet
make .golint
make .gitvalidation
make docs