Add the Explanation field containing the document explain details to … #194
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit | |
on: [push, pull_request] | |
env: | |
GITHUB_ACTIONS: true | |
jobs: | |
test: | |
name: "Tests (${{ matrix.os }})" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: { go-version-file: 'go.mod' } | |
- run: go version | |
- run: make test-unit race=true | |
if: matrix.os != 'ubuntu-latest' | |
- run: make test-unit race=true coverage=true | |
if: matrix.os == 'ubuntu-latest' | |
- uses: codecov/codecov-action@v3 | |
with: | |
file: tmp/unit.cov | |
flags: unit | |
if: matrix.os == 'ubuntu-latest' | |
bench: | |
name: Benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: { go-version-file: 'go.mod' } | |
- run: go version | |
- run: make test-bench |