Files
lo/.github/workflows/test.yml
T
Samuel Berthe 380e1a0ae2 fix(tests): fix flaky time-based tests (#699)
* fix(tests): fix flaky time-based tests

* test: replace time package with a mock
Using a dedicated dependency would have been awesome, but i try to keep this repo with minimal dependencies
2025-10-05 00:34:07 +02:00

51 lines
890 B
YAML

name: Tests
on:
push:
tags:
branches:
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 }}
stable: false
- name: Build
run: make build
- name: Test
run: make test
- name: Test
run: make coverage
- name: Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover.out
flags: unittests
verbose: true
if: matrix.go == '1.18'