Skip to content

Commit

Permalink
Drop ancient Go versions and add modern ones
Browse files Browse the repository at this point in the history
  • Loading branch information
g7r committed Nov 8, 2024
1 parent a1c187a commit bba9b01
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,18 @@ jobs:

strategy:
matrix:
go: [1.8, 1.9, '1.10', 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18]
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]

steps:

- name: Checkout to GOPATH
if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }}
uses: actions/checkout@v2
with:
path: go/src/github.com/${{ github.repository }}

- name: Checkout with no GOPATH
if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }}
- name: Checkout
uses: actions/checkout@v2

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

- name: "Setup dependencies"
if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }}
run: go get -t ./... && cd $GOPATH/src/github.com/stretchr/testify/ && git checkout v1.2.2 && cd - && pwd
env:
GOPATH: /home/runner/work/errorx/errorx/go

- name: Build no modules
if: ${{ matrix.go == '1.8' || matrix.go == '1.9' || matrix.go == '1.10' }}
run: cd go/src/github.com/${{ github.repository }} && go test -v ./...
env:
GOPATH: /home/runner/work/errorx/errorx/go

- name: Build with modules
if: ${{ matrix.go != '1.8' && matrix.go != '1.9' && matrix.go != '1.10' }}
- name: Build
run: go test -v ./...

0 comments on commit bba9b01

Please sign in to comment.