Skip to content

Commit

Permalink
chore: remove docker + improve CI Go versions (#17)
Browse files Browse the repository at this point in the history
* chore: remove docker + improve CI Go versions
* fix: linting now requires Go >= 1.17
  • Loading branch information
katcipis committed Nov 22, 2021
1 parent 19c82ae commit c6d0465
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "1.17"

- name: Lint
run: make lint
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [macos-10.15, ubuntu-20.04, windows-2019]
go: [1.16]
go: ["1.16", "1.17"]

steps:
- name: Checkout
Expand Down
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
golangci_lint_version=1.41.1

all: analysis test
all: lint test bench

test:
go test -race -timeout 10s -coverprofile=coverage.txt -covermode=atomic ./...
Expand All @@ -19,4 +17,4 @@ bench/memory/%:
go test -bench=. -benchmem -memprofile="profilling/${*}-memory.p" "./${*}"

lint:
@docker run --rm -v `pwd`:/app -w /app golangci/golangci-lint:v$(golangci_lint_version) golangci-lint run ./...
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.43.0 run ./...

0 comments on commit c6d0465

Please sign in to comment.