Test Go release on every version from 1.12 -> 1.17
@@ -462,12 +462,13 @@ jobs:
path: languages/js/*
validate_go:
- name: Test go on ${{ matrix.os }}
+ name: Test go ${{ matrix.go-version }} on ${{ matrix.os }}
needs: [build_go]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
+ go-version: ["1.12", "1.13", "1.14", "1.15", "1.16", "1.17"]
steps:
- uses: actions/checkout@v2
- name: Set version env
@@ -476,7 +477,7 @@ jobs:
- name: Set up go
uses: actions/setup-go@v2
with:
- go-version: "1.15"
+ go-version: ${{ matrix.go-version }}
- name: Download go package from package run
uses: actions/download-artifact@v1
with:
@@ -487,8 +488,13 @@ jobs:
go test -v ./tests/
working-directory: go
- name: "test musl"
- if: runner.os == 'Linux'
- run: docker run --rm -v `pwd`:/oso tetafro/golang-gcc:1.15-alpine /bin/sh -c 'cd /oso && go build && go test -v ./tests/'
+ # TODO(gj): the dependency fetching step in the
+ # tetafro/golang-gcc:1.12-alpine image seems to require Git (unlike Go
+ # versions 1.13 -> 1.17), and the image doesn't contain Git. We could
+ # create our own image that extends tetafro/golang-gcc:1.12-alpine and
+ # contains Git, but for now I'm skipping it.
+ if: runner.os == 'Linux' && matrix.go-version != '1.12'
+ run: docker run --rm -v `pwd`:/oso tetafro/golang-gcc:${{ matrix.go-version }}-alpine /bin/sh -c 'cd /oso && go build && go test -v ./tests/'
working-directory: go
validate_python_linux:
