From 7d7b6762cc04a40a0172a678133d8a0feb6c8045 Mon Sep 17 00:00:00 2001 From: snehaldwivedi Date: Mon, 17 Jan 2022 22:07:51 -0800 Subject: [PATCH] ntegrated test coverage % report Signed-off-by: snehaldwivedi --- .github/workflows/lint.yaml | 21 ++++++++++++++++++++- coverage/.last_run.json | 5 +++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 coverage/.last_run.json diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 3de8d3788..65057f692 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -33,4 +33,23 @@ jobs: - uses: zwaldowski/cspell-action@v1 with: config: cspell.json - paths: "**/*" \ No newline at end of file + 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 diff --git a/coverage/.last_run.json b/coverage/.last_run.json new file mode 100644 index 000000000..708c06f1a --- /dev/null +++ b/coverage/.last_run.json @@ -0,0 +1,5 @@ +{ + "result": { + "line": 94.29 + } +}