-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from austinvazquez/add-go-1.20-support
Update GitHub Actions CI to address updates and issues
- Loading branch information
Showing
3 changed files
with
26 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,41 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
lint: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go: [ '1.17', '1.18', '1.19' ] | ||
os: [ ubuntu-22.04, windows-2022 ] | ||
name: ${{ matrix.os }} / Go ${{ matrix.go }} | ||
os: [ 'ubuntu-22.04' ] | ||
|
||
name: ${{ matrix.os }} / Lint | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
cache: false | ||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
version: v1.50.1 | ||
- uses: actions/setup-go@v3 | ||
version: v1.52.2 | ||
|
||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go: [ '1.17', '1.18', '1.19', '1.20' ] | ||
os: [ 'ubuntu-22.04', 'windows-2022' ] | ||
|
||
name: ${{ matrix.os }} / Go ${{ matrix.go }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
cache: false | ||
- name: build | ||
run: make build | ||
- name: test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
bin/ | ||
.idea/ | ||
deps/ | ||
|
||
.get-deps-stamp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ lint: $(SOURCES) | |
.get-deps-stamp: | ||
GO111MODULE=off GOBIN=$(DEPSPATH) go get golang.org/x/tools/cmd/goimports | ||
GOBIN=$(DEPSPATH) go get github.com/golang/mock/[email protected] | ||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(DEPSPATH) v1.21.0 | ||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(DEPSPATH) v1.52.2 | ||
$(DEPSPATH)/golangci-lint --version | ||
touch .get-deps-stamp | ||
|
||
|