Add Maintainability and Test Coverage badges #102
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: tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
ruby: ["3.1", "3.2", "3.3"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- 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 | |
- run: bundle exec rake test | |
- run: | | |
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}" | |
./cc-test-reporter after-build -r 503b90af6f7d19fdb5efdfbebc093049baaf24fe6f15a206240ceef2a438620d |