From 53161c122c98bd55bb96b2806d2c92168027b1b8 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Tue, 2 Feb 2021 19:26:42 +1100 Subject: [PATCH] chore: add code coverage reporting --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e82bdf0b4..a386f3e93 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,13 @@ jobs: with: ruby-version: ${{ matrix.ruby_version }} - run: "bundle install" - - run: "bundle exec rake" + - run: | + curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + chmod +x ./cc-test-reporter + - run: bundle exec rake + - run: ./cc-test-reporter after-build --exit-code 0 || true + env: + CC_TEST_REPORTER_ID: dc2c30b67c9e2a5309e1aef699c30fdab55ba4f0e4f1beac029ba93e293835db postgres: if: "!contains(github.event.head_commit.message, '[ci-skip]')" runs-on: "ubuntu-latest"