append capsules to byte slice instead of writing to an io.Writer #205
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
on: [push, pull_request] | |
jobs: | |
unit: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ubuntu", "windows", "macos" ] | |
go: [ "1.22.x", "1.23.x" ] | |
runs-on: ${{ fromJSON(vars[format('UNIT_RUNNER_{0}', matrix.os)] || format('"{0}-latest"', matrix.os)) }} | |
name: Unit tests (${{ matrix.os}}, Go ${{ matrix.go }}) | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- run: go version | |
- name: Run tests | |
env: | |
TIMESCALE_FACTOR: 10 | |
run: go test -v -cover -coverprofile coverage.txt ./... | |
- name: Run tests (32 bit) | |
if: ${{ matrix.os != 'macos' }} # can't run 32 bit tests on OSX. | |
env: | |
TIMESCALE_FACTOR: 10 | |
GOARCH: 386 | |
run: go test -v -cover | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: coverage.txt,coverage-root.txt | |
env_vars: OS=${{ matrix.os }}, GO=${{ matrix.go }} | |
token: ${{ secrets.CODECOV_TOKEN }} |