Skip to content

Update documentation #37

Update documentation

Update documentation #37

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
name: run tests
jobs:
test:
strategy:
matrix:
go-version: ["1.18", "1.19", "1.20", "1.21", "1.22"]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: go test ./... -v -covermode=count
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Checkout code
uses: actions/checkout@v2
- name: Calc coverage
run: |
go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage report
uses: codecov/[email protected]
with:
token: 1822df40-f576-4ae9-ab34-b8bdade485de
file: ./coverage.txt
flags: unittests
name: codecov-umbrella