mirror of
https://github.com/samber/lo.git
synced 2026-04-22 15:37:14 +08:00
49 lines
856 B
YAML
49 lines
856 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go:
|
|
- "1.18"
|
|
- "1.19"
|
|
- "1.20"
|
|
- "1.21"
|
|
- "1.22"
|
|
- "1.23"
|
|
- "1.24"
|
|
- "1.25"
|
|
- "1.x"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
|
|
- name: Build
|
|
run: make build
|
|
|
|
- name: Test
|
|
run: make test
|
|
|
|
- name: Test coverage
|
|
run: make coverage
|
|
if: matrix.go == '1.18'
|
|
|
|
- name: Codecov
|
|
uses: codecov/codecov-action@v5
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
flags: unittests
|
|
verbose: true
|
|
if: matrix.go == '1.18'
|