Merge pull request #2626 from mhashizume/maint/main/diagram #4
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: Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
rubocop_checks: | |
runs-on: ubuntu-20.04 | |
name: RuboCop | |
steps: | |
- name: Checkout current PR | |
uses: actions/checkout@v4 | |
- name: Rubocop checks | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
- run: bundle install --jobs 3 --retry 3 | |
- run: bundle exec rubocop --parallel | |
rtc: | |
runs-on: ubuntu-20.04 | |
name: RuboCop TODO | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gimmyxd/[email protected] | |
env: | |
RTC_TOKEN: ${{ secrets.RTC_TOKEN }} | |
UPDATE_PR: false | |
# forces the job to fail if there are any new offences | |
FORCE_ERROR_EXIT: true | |
commit_checks: | |
runs-on: ubuntu-20.04 | |
name: commit message | |
steps: | |
- name: Checkout current PR | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Commit message checks | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
- run: bundle install --jobs 3 --retry 3 | |
- run: bundle exec rake commits |