Skip to content

Commit

Permalink
Merge pull request #34 from Multiwoven/fix/code-climate
Browse files Browse the repository at this point in the history
fix: Code climate reporter path not found
  • Loading branch information
afthabvp authored Apr 12, 2024
2 parents 2cad61b + c26eeeb commit 14b2092
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/integrations-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:

- name: Install Code Climate Test Reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./integrations/cc-test-reporter
chmod +x ./integrations/cc-test-reporter
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
working-directory: ./integrations

- name: Push coverage data to Code Climate
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
./integrations/cc-test-reporter before-build
./integrations/cc-test-reporter after-build --exit-code $?
./cc-test-reporter before-build
./cc-test-reporter after-build --exit-code $?
working-directory: ./integrations
10 changes: 6 additions & 4 deletions .github/workflows/server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ jobs:
- name: Install cc-test-reporter
if: github.event_name == 'push'
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./server/cc-test-reporter
chmod +x ./server/cc-test-reporter
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
working-directory: ./server

- name: Upload Coverage to Code Climate
if: github.event_name == 'push'
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
./server/cc-test-reporter before-build
./server/cc-test-reporter after-build --exit-code $?
./cc-test-reporter before-build
./cc-test-reporter after-build --exit-code $?
working-directory: ./server
8 changes: 4 additions & 4 deletions .github/workflows/ui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./ui/cc-test-reporter
chmod +x ./ui/cc-test-reporter
./ui/cc-test-reporter before-build
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
if [ -f coverage/lcov.info ]; then
./ui/cc-test-reporter after-build --exit-code $? --coverage-input-type lcov
./cc-test-reporter after-build --exit-code $? --coverage-input-type lcov
else
echo "Coverage report not found."
fi
Expand Down

0 comments on commit 14b2092

Please sign in to comment.