Skip to content

Feat: Add github workflow for unit-test on push to any branch #1

Feat: Add github workflow for unit-test on push to any branch

Feat: Add github workflow for unit-test on push to any branch #1

Workflow file for this run

name: unit-tests
permissions:
contents: read
on:
push:
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
- name: Run Unit Tests
run: |
go clean -testcache && go test -v ./... -coverprofile=coverage.out
go tool cover -func=coverage.out
go tool cover -html=coverage.out -o coverage.html