Skip to content

pinnacles/simplecov-report-action

 
 

Repository files navigation

SimpleCov Report

A GitHub Action that report SimpleCov coverage.

Demo

Usage:

The action works only with pull_request event.

Inputs

  • token - The GITHUB_TOKEN secret.
  • failedThreshold - Failed threshold. (default: 90)
  • headRefCoveragePath - Path to last_run json file. (default: coverage/coverage.json)
  • baseRefCoveragePath - Path to baseRef json file. (default: baseref_coverage/coverage.json)
  • head_branch - Compare head branch coverage results

Example

name: Tests
on:
  pull_request:

jobs:
  build:
    steps:
      - name: Test
        run: bundle exec rspec

      - name: SimpleCov Report
        uses: pinnacles/simplecov-report-action@main
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          event_name: pull_request
          head_branch: main

About

A GitHub Action that report simplecov coverage.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 96.9%
  • JavaScript 3.1%