Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Merge pull request #33 from Balaji01-4D/update-ci #166

Merge pull request #33 from Balaji01-4D/update-ci

Merge pull request #33 from Balaji01-4D/update-ci #166

Workflow file for this run

name: coverage
on: [push, pull_request]
jobs:
coverage:
strategy:
matrix:
go-version: [1.24.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
GO111MODULE: "on"
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- name: Run tests with coverage
run: go test -race -covermode atomic -coverprofile=profile.cov ./...
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=profile.cov -service=github