Skip to content

Make ignore main optional #38

Make ignore main optional

Make ignore main optional #38

Workflow file for this run

name: Integration Test
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: run tests
run: |
go test ./... -coverprofile=coverage.out
- name: generate diff
run: |
git diff origin/${{ github.base_ref }} origin/${{ github.head_ref }} > pr.diff
- name: self test
id: selftest
uses: panagiotisptr/cov-diff@main
with:
path: .
coverprofile: coverage.out
diff: pr.diff
module: github.com/panagiotisptr/cov-diff
- name: Comment
uses: mshick/add-pr-comment@v2
with:
message: |
Coverage on new code: ${{ steps.selftest.outputs.covdiff }}%