Skip to content

Report memory usage and correct CPU percentage in heartbeat messages #33

Report memory usage and correct CPU percentage in heartbeat messages

Report memory usage and correct CPU percentage in heartbeat messages #33

Workflow file for this run

name: Run unittests
on:
push:
pull_request:
types: [synchronize]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '>=1.13.0'
- name: Checkout code
uses: actions/checkout@v3
- name: Run unittests and generate coverage report
run: go test -timeout 2m -coverprofile="cover.out" -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
name: boomer # User defined upload name. Visible in Codecov UI
file: ./cover.out # Path to coverage file to upload
flags: unittests # Flag upload to group coverage metrics
verbose: true