Skip to content

Commit

Permalink
Split CI unit tests into supported and deprecated Go version stages (#…
Browse files Browse the repository at this point in the history
…368)

Splits the GitHub Action CI unit tests for Go into two different
sections, version supported by Go, and deprecated. This allows the unit
tests to fail faster on cross version issues, and separate deprecated
Go versions into a separate group.
  • Loading branch information
jasdel committed Jun 27, 2022
1 parent 673e566 commit 807c170
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/go.yml
Expand Up @@ -8,12 +8,12 @@ on:

jobs:
unit-tests:
name: Test SDK
name: SDK Unit Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: [1.17, 1.16, 1.15]
go-version: [1.18, 1.17]
steps:
- uses: actions/checkout@v2

Expand All @@ -25,3 +25,21 @@ jobs:
- name: Test
run: go test -v ./...

deprecated-unit-tests:
needs: unit-tests
name: Deprecated Go version SDK Unit Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: [1.16, 1.15]
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Test
run: go test -v ./...

0 comments on commit 807c170

Please sign in to comment.