Skip to content

add test case

add test case #592

Workflow file for this run

# GitHub Actions - CI for Go to build & test. See ci-go-cover.yml and linters.yml for code coverage and linters.
# Taken from: https://github.com/fxamacker/cbor/workflows/ci.yml (thanks!)
name: ci
on: [push, pull_request]
jobs:
# Test on various OS with default Go version.
tests:
strategy:
fail-fast: false
matrix:
go-version: [1.18, 1.19]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests
run: go test -race -v -coverprofile=coverage.txt .
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3