Skip to content

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

ci: add GitHub Actions workflow for tests and Codecov integration

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

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
name: Run Tests
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: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v2
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}