From bba9b019d21b1b7249f23e843029b2429d33c113 Mon Sep 17 00:00:00 2001 From: Sergey Zagursky Date: Fri, 8 Nov 2024 11:50:59 +0000 Subject: [PATCH] Drop ancient Go versions and add modern ones --- .github/workflows/ci.yml | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19fd1ad..1b0798c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,18 +9,11 @@ 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 }} @@ -28,19 +21,6 @@ jobs: 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 ./...