Skip to content

Bump coverallsapp/github-action from 2.2.1 to 2.2.2 #101

Bump coverallsapp/github-action from 2.2.1 to 2.2.2

Bump coverallsapp/github-action from 2.2.1 to 2.2.2 #101

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Test and Calculate Coverage
run: go test -v -covermode=count -coverprofile=coverage.out
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.9
with:
infile: coverage.out
outfile: coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@v2.2.2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov