Skip to content

Act.0

Act.0 #1088

Workflow file for this run

name: Coverage
on:
push:
branches:
- 'master'
pull_request:
branches:
- '**'
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.4'
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Report results to DeepSource
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
run: |
go test -coverprofile=cover.out $(go list ./... | grep -v wasm) -timeout=30m
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key go --value-file ./cover.out