From 75a14afc17fbad10385045528fee848e8e0224e9 Mon Sep 17 00:00:00 2001 From: Marty Schoch Date: Mon, 20 Apr 2020 14:37:36 -0400 Subject: [PATCH] add CI workflow for code coverage --- .github/workflows/cover.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/cover.yml diff --git a/.github/workflows/cover.yml b/.github/workflows/cover.yml new file mode 100644 index 000000000..e7d4bbf00 --- /dev/null +++ b/.github/workflows/cover.yml @@ -0,0 +1,23 @@ +on: + push: + branches: + - master + pull_request: +name: Coverage +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: '1.14.x' + - name: Checkout code + uses: actions/checkout@v2 + - name: Test + run: | + go test -coverprofile=profile.cov -coverpkg=./... ./... + - name: Send coverage + uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: profile.cov