From cf03d7ef69030eec4e5df3875b70848188a69cc7 Mon Sep 17 00:00:00 2001 From: "Michael L. Young" Date: Thu, 17 Mar 2022 11:10:49 -0400 Subject: [PATCH] Attempt to fix the build testing error. --- .github/workflows/releasebuild.yml | 2 ++ .github/workflows/test.yml | 9 +++++++-- go.mod | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/releasebuild.yml b/.github/workflows/releasebuild.yml index 92d41c77..a6783d98 100644 --- a/.github/workflows/releasebuild.yml +++ b/.github/workflows/releasebuild.yml @@ -24,6 +24,8 @@ jobs: uses: actions/checkout@v2 - name: Install Go uses: actions/setup-go@v2 + with: + go-version: '1.16' - uses: actions/cache@v2 with: path: ~/go/pkg/mod diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 409d9c4d..c1a71d66 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,11 +15,16 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.16', '1.17', '1.18' ] steps: - uses: actions/checkout@v2 - - name: Install Go + - name: Setup go ${{ matrix.go }} uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} - uses: actions/cache@v2 with: @@ -28,5 +33,5 @@ jobs: restore-keys: | ${{ runner.os }}-go- - - name: Build + - name: Build with go ${{ matrix.go }} run: make all diff --git a/go.mod b/go.mod index 08cc3e1c..56803414 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/hpcng/warewulf -go 1.15 +go 1.16 require ( github.com/brotherpowers/ipsubnet v0.0.0-20170914094241-30bc98f0a5b1