Skip to content

Commit

Permalink
Merge pull request #205 from chef/snehal/integrate_simplecov_report
Browse files Browse the repository at this point in the history
Integrated test coverage % report
  • Loading branch information
vkarve-chef authored Jan 27, 2022
2 parents 3e75311 + 7d7b676 commit 40b197c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,23 @@ jobs:
- uses: zwaldowski/cspell-action@v1
with:
config: cspell.json
paths: "**/*"
paths: "**/*"

coverage-test:
name: Coverage
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: run specs
run: bundle exec rake spec --trace
- name: Simplecov Report
uses: aki77/simplecov-report-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
failedThreshold: 90
resultPath: coverage/.last_run.json
5 changes: 5 additions & 0 deletions coverage/.last_run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"result": {
"line": 94.29
}
}

0 comments on commit 40b197c

Please sign in to comment.