Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
duke-git committed Nov 29, 2021
1 parent 59d7281 commit 7d39d13
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions codecov.yml → .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Test and coverage

on: [push, pull_request]

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -11,7 +15,7 @@ jobs:
fetch-depth: 2
- uses: actions/setup-go@v2
with:
go-version: '1.16'
go-version: "1.16"
- name: Run coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
Expand Down

0 comments on commit 7d39d13

Please sign in to comment.