Merge pull request #2758 from treydock/aws-xenhvm #694
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Coverage | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
coverage_checks: | |
runs-on: ubuntu-20.04 | |
name: coverage | |
steps: | |
- name: Checkout current PR | |
uses: actions/checkout@v4 | |
- name: Setup Code Climate test-reporter | |
run: | | |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | |
chmod +x ./cc-test-reporter | |
./cc-test-reporter before-build | |
- name: Generate coverage | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
bundler-cache: true | |
- run: bundle exec rake spec | |
- name: Publish code coverage | |
run: | | |
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}" | |
./cc-test-reporter after-build -r ${{secrets.CC_TEST_REPORTER_ID}} |