Require Go 1.17

This commit is contained in:
Neil Alexander 2022-04-17 18:22:26 +01:00
parent 41d890bb64
commit 073799d3de
3 changed files with 55 additions and 45 deletions

View file

@ -24,73 +24,73 @@ jobs:
strategy:
fail-fast: false
matrix:
goversion: ["1.16", "1.17", "1.18"]
goversion: ["1.17", "1.18"]
name: Build & Test (Linux, Go ${{ matrix.goversion }})
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.goversion }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.goversion }}
- name: Build Yggdrasil
run: go build -v ./...
- name: Build Yggdrasil
run: go build -v ./...
- name: Unit tests
run: go test -v ./...
- name: Unit tests
run: go test -v ./...
build-windows:
strategy:
fail-fast: false
matrix:
goversion: ["1.16", "1.17", "1.18"]
goversion: ["1.17", "1.18"]
name: Build & Test (Windows, Go ${{ matrix.goversion }})
needs: [lint]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.goversion }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.goversion }}
- name: Build Yggdrasil
run: go build -v ./...
- name: Build Yggdrasil
run: go build -v ./...
- name: Unit tests
run: go test -v ./...
- name: Unit tests
run: go test -v ./...
build-macos:
strategy:
fail-fast: false
matrix:
goversion: ["1.16", "1.17", "1.18"]
goversion: ["1.17", "1.18"]
name: Build & Test (macOS, Go ${{ matrix.goversion }})
needs: [lint]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.goversion }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.goversion }}
- name: Build Yggdrasil
run: go build -v ./...
- name: Build Yggdrasil
run: go build -v ./...
- name: Unit tests
run: go test -v ./...
- name: Unit tests
run: go test -v ./...
tests-ok:
name: All tests passed