Skip to content

Commit bba9b01

Browse files
committed
Drop ancient Go versions and add modern ones
1 parent a1c187a commit bba9b01

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

Diff for: .github/workflows/ci.yml

+3-23
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,18 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
go: [1.8, 1.9, '1.10', 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18]
12+
go: [1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, '1.20', 1.21, 1.22, 1.23]
1313

1414
steps:
1515

16-
- name: Checkout to GOPATH
17-
if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }}
18-
uses: actions/checkout@v2
19-
with:
20-
path: go/src/github.com/${{ github.repository }}
21-
22-
- name: Checkout with no GOPATH
23-
if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }}
16+
- name: Checkout
2417
uses: actions/checkout@v2
2518

2619
- name: Set up Go ${{ matrix.go }}
2720
uses: actions/setup-go@v1
2821
with:
2922
go-version: ${{ matrix.go }}
3023

31-
- name: "Setup dependencies"
32-
if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }}
33-
run: go get -t ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - && pwd
34-
env:
35-
GOPATH: /home/runner/work/errorx/errorx/go
36-
37-
- name: Build no modules
38-
if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }}
39-
run: cd go/src/github.com/${{ github.repository }} && go test -v ./...
40-
env:
41-
GOPATH: /home/runner/work/errorx/errorx/go
42-
43-
- name: Build with modules
44-
if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }}
24+
- name: Build
4525
run: go test -v ./...
4626

0 commit comments

Comments
 (0)