Skip to content

Commit ee69052

Browse files
DW225andrew-c-lee
andauthored
ci: update Go versions in CI workflow and improve caching (GH-88)
Co-authored-by: Andrew_C_Lee <andrew_c_lee@trendmicro.com>
1 parent 90368fb commit ee69052

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: ci
22
on: [push, pull_request]
33
jobs:
4-
build:
5-
runs-on: ubuntu-latest
6-
strategy:
7-
matrix:
8-
go: [ '1.13' ]
9-
name: Build and Test (Go ${{ matrix.go }})
10-
steps:
11-
- uses: actions/checkout@v2
12-
- name: Set up Go
13-
uses: actions/setup-go@v1
14-
with:
15-
go-version: ${{ matrix.go }}
16-
- run: go test
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
go: [ '1.13', '1.23', '1.24' ]
9+
name: Build and Test (Go ${{ matrix.go }})
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Go
13+
uses: actions/setup-go@v5
14+
with:
15+
go-version: ${{ matrix.go }}
16+
cache-dependency-path: 'go.sum'
17+
- run: go test

0 commit comments

Comments
 (0)