Skip to content

feat: add ema for more smoother metrics calculations #3

feat: add ema for more smoother metrics calculations

feat: add ema for more smoother metrics calculations #3

Workflow file for this run

name: Go Tests
on:
push:
branches: [ main, master ]
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
pull_request:
branches: [ main, master ]
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
check-latest: true
- name: Get dependencies
run: go mod tidy
- name: Run tests
run: go test -v -coverprofile=coverage.out ./...
- name: Display coverage
run: go tool cover -func=coverage.out
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.out
if-no-files-found: error