mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
chore: test on multi go versions (#445)
This commit is contained in:
@@ -10,13 +10,22 @@ jobs:
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go:
|
||||
- '1.18'
|
||||
- '1.19'
|
||||
- '1.20'
|
||||
- '1.21'
|
||||
- '1.22'
|
||||
- '1.x'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.18
|
||||
go-version: ${{ matrix.go }}
|
||||
stable: false
|
||||
|
||||
- name: Build
|
||||
@@ -35,3 +44,4 @@ jobs:
|
||||
file: ./cover.out
|
||||
flags: unittests
|
||||
verbose: true
|
||||
if: matrix.go == '1.18'
|
||||
|
||||
Reference in New Issue
Block a user