Skip to content

Commit

Permalink
Attempt to manually setup cc-test-reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Feb 17, 2022
1 parent 42b1ebc commit 6ef2c15
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 6ef2c15

Please sign in to comment.