Skip to content

Commit

Permalink
Adding CI to action
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousben committed Feb 20, 2022
1 parent bcc8b80 commit e4a37c7
Show file tree
Hide file tree
Showing 3 changed files with 592 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "CI"

on:
push:
branches:
- main
pull_request:

permissions:
contents: write
pull-requests: write

jobs:
checks:
name: "Checks"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: WillAbides/[email protected]
with:
go-version: "*"
- name: Patch Coverage
uses: ./
with:
version: main
coverage_filename: testdata/coverage.out
diff_filename: testdata/diff.diff
30 changes: 30 additions & 0 deletions testdata/coverage.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
mode: count
github.com/seriousben/go-patch-cover/cover.go:11.72,13.16 2 2
github.com/seriousben/go-patch-cover/cover.go:19.2,20.16 2 2
github.com/seriousben/go-patch-cover/cover.go:24.2,25.16 2 2
github.com/seriousben/go-patch-cover/cover.go:29.2,29.41 1 2
github.com/seriousben/go-patch-cover/cover.go:13.16,15.3 1 0
github.com/seriousben/go-patch-cover/cover.go:20.16,22.3 1 0
github.com/seriousben/go-patch-cover/cover.go:25.16,27.3 1 0
github.com/seriousben/go-patch-cover/cover.go:41.103,44.34 2 2
github.com/seriousben/go-patch-cover/cover.go:79.2,79.34 1 2
github.com/seriousben/go-patch-cover/cover.go:90.2,90.23 1 2
github.com/seriousben/go-patch-cover/cover.go:93.2,93.28 1 2
github.com/seriousben/go-patch-cover/cover.go:97.2,97.18 1 2
github.com/seriousben/go-patch-cover/cover.go:44.34,45.31 1 2
github.com/seriousben/go-patch-cover/cover.go:45.31,47.49 1 11
github.com/seriousben/go-patch-cover/cover.go:52.3,53.31 1 2
github.com/seriousben/go-patch-cover/cover.go:47.49,49.13 1 9
github.com/seriousben/go-patch-cover/cover.go:53.31,56.39 2 31
github.com/seriousben/go-patch-cover/cover.go:56.39,57.35 1 323
github.com/seriousben/go-patch-cover/cover.go:57.35,58.35 1 1207
github.com/seriousben/go-patch-cover/cover.go:61.7,65.57 2 661
github.com/seriousben/go-patch-cover/cover.go:58.35,59.16 1 546
github.com/seriousben/go-patch-cover/cover.go:65.57,67.23 1 21
github.com/seriousben/go-patch-cover/cover.go:70.8,70.26 1 21
github.com/seriousben/go-patch-cover/cover.go:67.23,69.9 1 17
github.com/seriousben/go-patch-cover/cover.go:79.34,80.30 1 2
github.com/seriousben/go-patch-cover/cover.go:80.30,82.19 2 31
github.com/seriousben/go-patch-cover/cover.go:82.19,84.5 1 26
github.com/seriousben/go-patch-cover/cover.go:90.23,92.3 1 2
github.com/seriousben/go-patch-cover/cover.go:93.28,95.3 1 2
Loading

0 comments on commit e4a37c7

Please sign in to comment.