Merge branch 'dev' #67
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: Ruby Test | |
on: | |
workflow_dispatch: | |
push: | |
branches: ['**'] | |
pull_request: | |
branches: ['**'] | |
jobs: | |
skip_check: | |
name: Skip Check | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@v5.3.1 | |
with: | |
concurrent_skipping: 'never' | |
skip_after_successful_duplicate: 'true' | |
paths: '[ | |
".github/workflows/ruby-test.yml", | |
".simplecov", | |
".rubocop", | |
"gem/**", | |
"Gemfile.lock", | |
"Rakefile", | |
"test/**", | |
"tasks/**" | |
]' | |
paths_ignore: '[ | |
"gem/config/**", | |
"gem/locales/**", | |
"!gem/locales/en.yml", | |
"**/*.md" | |
]' | |
do_not_skip: '["workflow_dispatch"]' | |
ruby_test: | |
needs: skip_check | |
if: ${{ needs.skip_check.outputs.should_skip != 'true' }} | |
name: Ruby ${{ matrix.ruby-version }} Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: ['3.1', '3.2', '3.3'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Check Rubocop compliance | |
run: bundle exec rubocop --format github | |
- name: Check Tests | |
run: bundle exec rake test | |
- name: Check Coverage # fails unless 100% | |
run: bundle exec rake check_coverage |