Skip to content

Merge pull request #32 from Tantalor93/dependabot/go_modules/github.c… #92

Merge pull request #32 from Tantalor93/dependabot/go_modules/github.c…

Merge pull request #32 from Tantalor93/dependabot/go_modules/github.c… #92

Workflow file for this run

name: Go Coverage
on:
pull_request:
push:
branches:
- main
jobs:
test:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Build
run: go build -v ./...
- name: Test With Coverage
run: |
go test -coverprofile=cover.out -covermode=atomic -race ./...; [ -f cover.out ] && cat cover.out >> ../coverage.txt
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3