mirror of
https://github.com/kerberos-io/agent.git
synced 2026-08-23 15:08:32 +00:00
try multiple go versions
This commit is contained in:
17
.github/workflows/go.yml
vendored
17
.github/workflows/go.yml
vendored
@@ -10,25 +10,24 @@ jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
- name: Set up Go 1.x
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [^1.15, ^1.16, ^1.17]
|
||||
|
||||
steps:
|
||||
- name: Set up Go ${{ matrix.go-version }}
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ^1.15
|
||||
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get dependencies
|
||||
run: cd machinery && go mod download
|
||||
|
||||
- name: Build
|
||||
run: cd machinery && go build -v ./...
|
||||
|
||||
- name: Vet
|
||||
run: cd machinery && go vet -v ./...
|
||||
|
||||
- name: Test
|
||||
run: cd machinery && go test -v ./...
|
||||
|
||||
Reference in New Issue
Block a user