Skip to content

Commit

Permalink
Merge pull request #1 from ripexz/matrix
Browse files Browse the repository at this point in the history
Set up matrix for testing on multiple versions
ripexz authored Dec 10, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
2 parents d66f186 + 043994b commit 716fad2
Showing 3 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -5,25 +5,27 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.17', '1.16', '1.15' ]
steps:

- name: Set up Go 1.14
uses: actions/setup-go@v1
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: 1.14
id: go
go-version: ${{ matrix.go }}

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

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Lint
uses: golangci/golangci-lint-action@v1
uses: golangci/golangci-lint-action@v2
with:
version: v1.26
version: v1.43

- name: Build
run: |
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ linters:
disable-all: true
enable:
- govet
- golint
- revive
- varcheck
- structcheck
- errcheck
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/ripexz/rip

go 1.14
go 1.17

0 comments on commit 716fad2

Please sign in to comment.