Skip to content

Commit

Permalink
test with go-1.16, use linter action, fix linter issues (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Jul 2, 2021
1 parent 043b608 commit cc9a356
Show file tree
Hide file tree
Showing 6 changed files with 387 additions and 73 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
name: build
on: [push]

on:
push

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.14
- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.14
go-version: 1.16
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Install golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.27.0

- name: Run golangci-lint
run: $(go env GOPATH)/bin/golangci-lint run
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
args: -p bugs -p unused

- name: Build
run: make test
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ go 1.16
require (
github.com/emicklei/go-restful/v3 v3.5.1
github.com/go-openapi/errors v0.20.0
github.com/go-openapi/runtime v0.19.28
github.com/go-openapi/runtime v0.19.29
github.com/go-openapi/strfmt v0.20.1
github.com/go-openapi/swag v0.19.15
github.com/go-openapi/validate v0.20.2
github.com/metal-stack/masterdata-api v0.8.5
github.com/metal-stack/metal-lib v0.7.2
github.com/metal-stack/masterdata-api v0.8.7
github.com/metal-stack/metal-lib v0.8.0
github.com/metal-stack/security v0.5.3
github.com/stretchr/testify v1.7.0
github.com/tidwall/pretty v1.1.0 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
)
Loading

0 comments on commit cc9a356

Please sign in to comment.