Skip to content

Commit

Permalink
Fix CI (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
santib authored Jan 8, 2024
1 parent fd5c4e7 commit bf87458
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI

on: [push, pull_request]
on:
pull_request:
push:
branches: [master]

jobs:
build:
Expand All @@ -9,12 +12,17 @@ jobs:
strategy:
matrix:
gemfile: [rails_7_1.gemfile, rails_head.gemfile]
ruby_version: [2.7, 3.0, 3.1, 3.2]
ruby_version: ['2.7', '3.0', '3.1', '3.2']
exclude:
- gemfile: rails_head.gemfile
ruby_version: '2.7'
- gemfile: rails_head.gemfile
ruby_version: '3.0'
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}
CC_TEST_REPORTER_ID: 7196b4aa257fde33f24463218af32db6a6efd23d9148204822f757fa614a093e
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -27,7 +35,7 @@ jobs:
./cc-test-reporter before-build
- name: Build and test with Rake
run: |
gem install bundler
gem install bundler -v 2.4.22
bundle update
bundle install --gemfile gemfiles/${{ matrix.gemfile }} --jobs 4 --retry 3
bundle exec rake code_analysis
Expand Down

0 comments on commit bf87458

Please sign in to comment.