Skip to content

Commit 7ac6e21

Browse files
author
Chris Bloom
authored
Merge pull request #24 from chrisbloom7/chrisbloom7/ci-ruby-versions
Add Ruby 3.1 to CI builds
2 parents 1d6af69 + ff813bd commit 7ac6e21

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/rubocop-analysis.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
# pulled from repo
2-
name: "Rubocop"
1+
# https://github.com/arthurnn/code-scanning-rubocop#action-installation
2+
name: "RuboCop"
33

44
on:
55
push:
66
branches: [ main ]
77
pull_request:
8-
# The branches below must be a subset of the branches above
98
branches: [ main ]
10-
schedule:
11-
- cron: '15 23 * * 6'
129

1310
jobs:
1411
rubocop:
@@ -20,24 +17,22 @@ jobs:
2017
- name: Checkout repository
2118
uses: actions/checkout@v2
2219

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

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

3429
- name: Install dependencies
3530
run: bundle install
3631

37-
- name: Rubocop run
32+
- name: RuboCop run
3833
run: |
3934
bash -c "
40-
bundle exec rubocop --enable-pending-cops --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
35+
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
4136
[[ $? -ne 2 ]]
4237
"
4338

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
ruby-version: ['2.6', '2.7', '3.0']
22+
ruby-version: ['2.6', '2.7', '3.0', '3.1']
2323

2424
steps:
2525
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)