Skip to content

snowfield702/simplecov-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplecov-report

A GitHub Action that report simplecov coverage.

Simplecov Report Capture

You can check the detailed report results by clicking the link.

SimoleCov Report Files Capture

Usage

Inputs

name overview
coverage_path Path where simplecov outputs coverage files
upload_destination Upload destination S3 key
upload_bucket Upload destination S3 bucket
comment Comments to output to pull request
domain Upload destination S3 domain

Preparation

Exsample

name: simplecov-report / test
on:
  pull_request:
jobs:
  simplecov-report:
    runs-on: ubuntu-latest
    permissions:
      id-token: write # GitHub OIDC with AWS
      contents: read
      pull-requests: write
    steps:
      - uses: actions/checkout@v2
      - uses: aws-actions/configure-aws-credentials@v1
        with:
          aws-region: ap-northeast-1
          role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
      - uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
          working-directory: ./sample_simplecov
      - name: Run rspec
        run: bundle exec rspec
        working-directory: ./sample_simplecov
      - uses: ./
        with:
          coverage_path: sample_simplecov/coverage
          upload_destination: simplecov_coverage
          upload_bucket: snowfield702-sample
          comment: Please check coverage report (no branch coverage)
          domain: snowfield702-sample.s3.ap-northeast-1.amazonaws.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages