forked from beautyjoy/BJC-Teacher-Tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to manually setup cc-test-reporter
- Loading branch information
1 parent
42b1ebc
commit 6ef2c15
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,11 @@ jobs: | |
with: | ||
ruby-version: 2.7.5 | ||
bundler-cache: true | ||
- name: Setup Code Climate | ||
run: | | ||
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}" | ||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
chmod +x ./cc-test-reportere | ||
- run: bin/yarn | ||
- run: bin/rails webpacker:compile | ||
- run: bundle exec rake db:setup | ||
|
@@ -46,10 +51,16 @@ jobs: | |
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Code Climate coveragem | ||
uses: paambaati/[email protected] | ||
- name: Publish Code Climate | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: simplecov | ||
debug: true | ||
run: | | ||
./cc-test-reporter format-coverage -t simplecov coverage/coverage.xml | ||
./cc-test-reporter upload-coverage | ||
# - name: Code Climate coveragem | ||
# uses: paambaati/[email protected] | ||
# env: | ||
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
# with: | ||
# coverageLocations: simplecov | ||
# debug: true |