diff --git a/.github/workflows/ci-go-functions-style.yaml b/.github/workflows/ci-go-functions-style.yaml index 55ef37f859658..628e437a00d4d 100644 --- a/.github/workflows/ci-go-functions-style.yaml +++ b/.github/workflows/ci-go-functions-style.yaml @@ -30,6 +30,9 @@ jobs: build: name: Build runs-on: ubuntu-latest + strategy: + matrix: + go-version: [1.11, 1.12, 1.13, 1.14] steps: - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -43,11 +46,11 @@ jobs: with: args: site2 .github deployment .asf.yaml .ci ct.yaml - - name: Set up Go 1.12 + - name: Set up Go uses: actions/setup-go@v1 if: steps.docs.outputs.changed_only == 'no' with: - go-version: 1.12 + go-version: ${{ matrix.go-version }} id: go - name: InstallTool diff --git a/.github/workflows/ci-go-functions-test.yaml b/.github/workflows/ci-go-functions-test.yaml index cb4b9d1a38545..5b6f942810108 100644 --- a/.github/workflows/ci-go-functions-test.yaml +++ b/.github/workflows/ci-go-functions-test.yaml @@ -28,9 +28,12 @@ on: jobs: - cpp-tests: + go-functions-tests: name: runs-on: ubuntu-latest + strategy: + matrix: + go-version: [1.11, 1.12, 1.13, 1.14] timeout-minutes: 120 steps: @@ -46,15 +49,15 @@ jobs: with: args: site2 .github deployment .asf.yaml .ci ct.yaml - - name: Set up Go 1.12 + - name: Set up Go uses: actions/setup-go@v1 if: steps.docs.outputs.changed_only == 'no' with: - go-version: 1.12 + go-version: ${{ matrix.go-version }} id: go - name: run tests if: steps.docs.outputs.changed_only == 'no' run: | cd pulsar-function-go - go test -v $(go list ./... | grep -v examples) + go test -v $(go list ./... | grep -v examples) ${{ matrix.go-version }}