Skip to content

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

ci: add GitHub Actions workflow for tests and Codecov integration

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

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/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}