Return HTTP response as second return value from typed API client functions #2126
Workflow file for this run
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@v4 | |
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 |