Merge pull request #33 from Balaji01-4D/update-ci #166
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |