Skip to content

Commit

Permalink
ci: configure static code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderbird committed Nov 26, 2024
1 parent 39813a9 commit db00f27
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,29 @@ jobs:
with:
name: coverage-reports
path: report


publish-reports:
runs-on: ubuntu-latest
name: Publish coverage reports
needs: build-and-test

# Only run for PR to main, because otherwise the secrets might be exposed
# to evil pseudo contributors.
# if: github.ref == 'refs/heads/main'

steps:
# the repository is required by codeclimate-action
- uses: actions/checkout@v4

- name: Download coverage reports
uses: actions/download-artifact@v4
with:
name: coverage-reports
path: coverage-reports

- name: Publish coverage report to CodeClimate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: coverage-reports/lcov.info:lcov
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Save Energy

[![Maintainability](https://api.codeclimate.com/v1/badges/a73e183c51a4686a9969/maintainability)](https://codeclimate.com/github/wonderbird/save-energy/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/a73e183c51a4686a9969/test_coverage)](https://codeclimate.com/github/wonderbird/save-energy/test_coverage)

Reduce your carbon footprint by saving energy on GitHub.

## How we can save energy on GitHub
Expand Down

0 comments on commit db00f27

Please sign in to comment.