Skip to content

Commit

Permalink
Update Go version in CI (#32)
Browse files Browse the repository at this point in the history
* Update Go version in CI

* Remove obsolete GO111MODULE: off

* Update github actions
  • Loading branch information
VojtechVitek authored May 4, 2024
1 parent b41f767 commit f8fbaee
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,28 @@ jobs:
test:
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: off

defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}

strategy:
matrix:
go-version: [1.14.x, 1.15.x, 1.16.x]
go-version: [1.16.x, 1.19.x, 1.22.x]
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Test
run: |
go get -d -t ./...
go test -v ./...
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Test
run: |
go get -d -t ./...
go test -v ./...

0 comments on commit f8fbaee

Please sign in to comment.