Fix error seen when this gem installed but not specified as dependency in project #47
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: Coverage | |
on: | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- 'README.md' | |
- 'README.md.erb' | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'README.md' | |
- 'README.md.erb' | |
jobs: | |
unit_tests: | |
name: Unit Tests with Code Coverage | |
if: "contains(github.event.commits[0].message, '[ci skip]') == false" | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- "2.7" | |
- "3.2" | |
- "3.3" | |
allow_failures: | |
- false | |
env: | |
ALLOW_FAILURES: "${{ matrix.allow_failures }}" | |
COVERAGE: true | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Test | |
run: bundle exec rspec || $ALLOW_FAILURES | |
- name: Send to Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |