Commit 0f5bc1ff authored by Ivan Vandot's avatar Ivan Vandot Committed by GitHub

add coverage.yaml to github actions (#100)

* add coverage.yaml to github actions

* add all test files to code coverage
parent 75fe1591
name: Coverage
on: [push, pull_request]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.14
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Report results to DeepSource
run: |
go test -coverprofile=cover.out ./...
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key go --value-file ./cover.out
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment