Skip to content

Commit

Permalink
Merge pull request #24 from chrisbloom7/chrisbloom7/ci-ruby-versions
Browse files Browse the repository at this point in the history
Add Ruby 3.1 to CI builds
  • Loading branch information
chrisbloom7 authored Jul 26, 2022
2 parents 1d6af69 + ff813bd commit 7ac6e21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/rubocop-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# pulled from repo
name: "Rubocop"
# https://github.com/arthurnn/code-scanning-rubocop#action-installation
name: "RuboCop"

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '15 23 * * 6'

jobs:
rubocop:
Expand All @@ -20,24 +17,22 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

# If running on a self-hosted runner, check it meets the requirements
# listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

# This step is not necessary if you add the gem to your Gemfile
- name: Install Code Scanning integration
run: bundle add code-scanning-rubocop --version 0.3.0 --skip-install
run: bundle add code-scanning-rubocop --skip-install

- name: Install dependencies
run: bundle install

- name: Rubocop run
- name: RuboCop run
run: |
bash -c "
bundle exec rubocop --enable-pending-cops --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
[[ $? -ne 2 ]]
"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0']
ruby-version: ['2.6', '2.7', '3.0', '3.1']

steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 7ac6e21

Please sign in to comment.