Create dependabot.yml #142
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: "linter" | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
if: "! contains(toJSON(github.event.head_commit.message), 'skip ci')" | |
strategy: | |
matrix: | |
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
# This step is not necessary if you add the gem to your Gemfile | |
- name: Install Rubocop | |
run: bundle add rubocop | |
- name: Run Rubocop | |
run: bundle exec rubocop |