From 4c56447d66b447ea8bba23e855b31f0c352df2fe Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 15 Jun 2020 17:32:59 -0500 Subject: [PATCH] ci: add codecov.io integration. --- .github/workflows/test.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 27e3cb26d..0c503fe4b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,6 +25,9 @@ jobs: GIT_COMMIT_SHA: ${{ github.sha }} GIT_BRANCH: ${{ github.ref }} + # https://docs.codecov.io/docs + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + DATABASE_URL: postgresql://danbooru:danbooru@postgres/danbooru ARCHIVE_DATABASE_URL: postgresql://danbooru:danbooru@postgres/danbooru DANBOORU_SECRET_KEY_BASE: 1234 @@ -77,3 +80,5 @@ jobs: run: bin/rails test - name: Upload test coverage to Code Climate run: ./test-reporter-latest-linux-amd64 after-build --debug + - name: Upload test coverage to Codecov.io + run: bash <(curl -s https://codecov.io/bash)