A GitHub Action that report simplecov coverage.
You can check the detailed report results by clicking the link.
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 |
- Install aws-cli ( reference: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html )
- Install gh ( reference: https://github.com/cli/cli/blob/trunk/docs/install_linux.md )
- Configure aws credentials ( reference: https://github.com/aws-actions/configure-aws-credentials )
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