-
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.
This is based on the configuration from the CLI project to provide some consistency. Fixes #10.
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: "2" | ||
exclude_patterns: | ||
- "Corgibytes.Freshli.Agent.DotNet/obj/**" | ||
- "Corgibytes.Freshli.Agent.DotNet.Test/**" | ||
- "**/*.Designer.cs" | ||
|
||
checks: | ||
method-lines: | ||
config: | ||
threshold: 65 | ||
file-lines: | ||
config: | ||
threshold: 300 | ||
method-count: | ||
config: | ||
threshold: 25 | ||
argument-count: | ||
enabled: true | ||
config: | ||
threshold: 7 | ||
similar-code: | ||
enabled: false |
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 |
---|---|---|
|
@@ -125,6 +125,15 @@ jobs: | |
run: | | ||
ruby bin/lint.rb | ||
- name: "[Test]" | ||
- name: "[Test] - Test and Collect Code Coverage" | ||
run: | | ||
ruby bin/test.rb | ||
dotnet coverlet ./exe --target "ruby" --targetargs 'bin/test.rb --skip-build' --format lcov | ||
- name: "[Test] - Send Code Coverage Data to Code Climate" | ||
uses: paambaati/[email protected] | ||
if: ${{ github.actor != 'dependabot[bot]' && runner.os != 'Windows' }} | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: | | ||
${{github.workspace}}/coverage.info:lcov |