Reformat examples #73
Workflow file for this run
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: CI Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
continue-on-error: true | |
strategy: | |
matrix: | |
ruby: ['3.1', '3.2', head] | |
operating-system: [ubuntu-latest] | |
name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }} | |
runs-on: ${{ matrix.operating-system }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Initialize Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run rake | |
run: bundle exec rake | |
coverage: | |
needs: [ build ] | |
runs-on: ubuntu-latest | |
name: Report test coverage to CodeClimate | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Initialize Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
bundler-cache: true | |
- name: Run tests | |
run: bundle exec rake spec | |
- name: Report test coverage | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: b79e3e5c15467ab7753d3dfbe521e07d79f8e1af50e52428f0281e4f8c4ed3b8 | |
with: | |
coverageLocations: ${{github.workspace}}/coverage/lcov/*.lcov:lcov |