Skip to content

Commit 3c1c1ef

Browse files
filipenosVojtechVitek
authored andcommitted
fix(ci): update workflow to modern Go versions and actions
1 parent 5bfdc31 commit 3c1c1ef

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,19 @@ on: [push, pull_request]
22
name: Test
33
jobs:
44
test:
5-
env:
6-
GOPATH: ${{ github.workspace }}
7-
GO111MODULE: off
8-
9-
defaults:
10-
run:
11-
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
12-
135
strategy:
146
matrix:
15-
go-version: [1.14.x, 1.15.x, 1.16.x]
7+
go-version: [1.21.x, 1.22.x, 1.23.x]
168
os: [ubuntu-latest, macos-latest, windows-latest]
179

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

2012
steps:
2113
- name: Install Go
22-
uses: actions/setup-go@v2
14+
uses: actions/setup-go@v5
2315
with:
2416
go-version: ${{ matrix.go-version }}
2517
- name: Checkout code
26-
uses: actions/checkout@v2
27-
with:
28-
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
18+
uses: actions/checkout@v4
2919
- name: Test
30-
run: |
31-
go get -d -t ./...
32-
go test -v ./...
20+
run: go test -v ./...

0 commit comments

Comments
 (0)