Skip to content

ci: add GitHub Actions workflow for tests and Codecov integration #1

ci: add GitHub Actions workflow for tests and Codecov integration

ci: add GitHub Actions workflow for tests and Codecov integration #1

Workflow file for this run

name: Run Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.24'
- name: Run test with coverage
run: go test ./... -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
flags: go-1.24