ci: add codecov.io integration.

This commit is contained in:
evazion
2020-06-15 17:32:59 -05:00
parent 107729e17f
commit 4c56447d66

View File

@@ -25,6 +25,9 @@ jobs:
GIT_COMMIT_SHA: ${{ github.sha }} GIT_COMMIT_SHA: ${{ github.sha }}
GIT_BRANCH: ${{ github.ref }} GIT_BRANCH: ${{ github.ref }}
# https://docs.codecov.io/docs
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
DATABASE_URL: postgresql://danbooru:danbooru@postgres/danbooru DATABASE_URL: postgresql://danbooru:danbooru@postgres/danbooru
ARCHIVE_DATABASE_URL: postgresql://danbooru:danbooru@postgres/danbooru ARCHIVE_DATABASE_URL: postgresql://danbooru:danbooru@postgres/danbooru
DANBOORU_SECRET_KEY_BASE: 1234 DANBOORU_SECRET_KEY_BASE: 1234
@@ -77,3 +80,5 @@ jobs:
run: bin/rails test run: bin/rails test
- name: Upload test coverage to Code Climate - name: Upload test coverage to Code Climate
run: ./test-reporter-latest-linux-amd64 after-build --debug run: ./test-reporter-latest-linux-amd64 after-build --debug
- name: Upload test coverage to Codecov.io
run: bash <(curl -s https://codecov.io/bash)