Skip to content

Commit

Permalink
Merge pull request #215 from covalenthq/develop
Browse files Browse the repository at this point in the history
Test Coverage Reports
  • Loading branch information
noslav authored Sep 27, 2023
2 parents 78b6ae3 + 221ff02 commit 3b0e168
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: go-test

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
- "develop"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Go 1.19.x
uses: actions/setup-go@v4
with:
# Semantic version range syntax or exact version of Go
go-version: '1.19.x'
cache-dependency-path: ./go.sum
- name: Install dependencies
run: |
go get -d ./...
- name: Build Binaries
run: go build -v ./...
- name: Test with the Go CLI
run: go test ./... -coverprofile=coverage.out
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<img alt="Lines of code" src="https://img.shields.io/tokei/lines/github/covalenthq/bsp-agent">
</a>
<a href="https://bestpractices.coreinfrastructure.org/projects/5570"><img src="https://bestpractices.coreinfrastructure.org/projects/5570/badge"></a>
<a href="https://codecov.io/gh/covalenthq/bsp-agent"><img src="https://codecov.io/gh/covalenthq/bsp-agent/graph/badge.svg?token=DEB4871WZ3"/></a>
<a href="http://covalenthq.com/discord">
<img alt="Discord" src="https://img.shields.io/badge/discord-join%20chat-blue.svg" />
</a>
Expand Down

0 comments on commit 3b0e168

Please sign in to comment.