Skip to content

Commit

Permalink
Merge pull request #41 from austinvazquez/add-go-1.20-support
Browse files Browse the repository at this point in the history
Update GitHub Actions CI to address updates and issues
  • Loading branch information
austinvazquez authored May 24, 2023
2 parents 4bcb0f7 + 6fe69ee commit fd662db
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/ci.yml
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
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
bin/
.idea/
deps/

.get-deps-stamp
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fd662db

Please sign in to comment.