Skip to content

Commit

Permalink
Replace codeclimate report way
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksam07 committed Feb 13, 2024
1 parent 125a3ef commit 59c23d5
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,18 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Code Climate test-reporter
run: |
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: matrix.coverage
- name: Bundle install
run: bundle install -j$(nproc) --retry 3
- name: Run tests
run: bundle exec rspec
timeout-minutes: 1
- name: Publish code coverage
run: |
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
./cc-test-reporter after-build -r ${{env.CC_TEST_REPORTER_ID}}
if: matrix.coverage
if: !matrix.coverage
- name: Test & publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ env.CC_TEST_REPORTER_ID }}
with:
coverageCommand: bundle exec rspec
coverageLocations: ${{ github.workspace }}/coverage/coverage.json:simplecov
debug: true
if: matrix.coverage

0 comments on commit 59c23d5

Please sign in to comment.