Skip to content

Commit 8f8c3ec

Browse files
authored
Update CI to test community supported Go versions first (#1738)
Updates the SDK's Go CI testing to test Go versions that are not deprecated first, before testing deprecated versions.
1 parent 9810434 commit 8f8c3ec

File tree

1 file changed

+43
-5
lines changed

1 file changed

+43
-5
lines changed

.github/workflows/go.yml

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ env:
1111

1212
jobs:
1313
unix-tests:
14-
name: Test SDK
14+
name: Unix SDK tests
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
1818
os: [ubuntu-latest, macos-latest]
19-
go-version: [1.18, 1.17, 1.16, 1.15]
19+
go-version: [1.18, 1.17]
2020
steps:
2121
- uses: actions/checkout@v2
2222

@@ -26,19 +26,37 @@ jobs:
2626
go-version: ${{ matrix.go-version }}
2727

2828
- name: Install golint
29-
if: ${{ matrix.go-version == '1.17' }}
3029
run: go install golang.org/x/lint/golint@latest
3130

3231
- name: Test
3332
run: make ci-test-no-generate
3433

34+
deprecated-unix-tests:
35+
needs: unix-tests
36+
name: Deprecated Go version Unix SDK Tests
37+
runs-on: ${{ matrix.os }}
38+
strategy:
39+
matrix:
40+
os: [ubuntu-latest, macos-latest]
41+
go-version: [1.16, 1.15]
42+
steps:
43+
- uses: actions/checkout@v2
44+
45+
- name: Set up Go
46+
uses: actions/setup-go@v2
47+
with:
48+
go-version: ${{ matrix.go-version }}
49+
50+
- name: Test
51+
run: make ci-test-no-generate
52+
3553
windows-tests:
36-
name: Test SDK
54+
name: Windows SDK Tests
3755
runs-on: ${{ matrix.os }}
3856
strategy:
3957
matrix:
4058
os: [windows-latest]
41-
go-version: [1.18, 1.17, 1.16, 1.15]
59+
go-version: [1.18, 1.17]
4260
env:
4361
EACHMODULE_SKIP: "internal\\repotools\\changes"
4462
steps:
@@ -52,3 +70,23 @@ jobs:
5270
- name: Test
5371
run: make vet build unit-test
5472

73+
deprecated-windows-tests:
74+
needs: windows-tests
75+
name: Deprecated Go version Windows SDK Tests
76+
runs-on: ${{ matrix.os }}
77+
strategy:
78+
matrix:
79+
os: [windows-latest]
80+
go-version: [1.16, 1.15]
81+
env:
82+
EACHMODULE_SKIP: "internal\\repotools\\changes"
83+
steps:
84+
- uses: actions/checkout@v2
85+
86+
- name: Set up Go
87+
uses: actions/setup-go@v2
88+
with:
89+
go-version: ${{ matrix.go-version }}
90+
91+
- name: Test
92+
run: make vet build unit-test

0 commit comments

Comments
 (0)