Skip to content

Commit

Permalink
See if we get results with this CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Dec 17, 2024
1 parent 26e0882 commit f7e191d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,26 @@ on:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
env:
RAILS_ENV: test
strategy:
fail-fast: false
matrix:
rails:
- "8.0"
- "7.2"
- "main"
ruby:
- '3.1'
- '3.3'
- "3.1"
- "3.3"
exclude:
- rails: "7.2"
ruby: "3.1"

env:
RAILS_ENV: test
RAILS_VERSION: ${{ matrix.rails }}
BUNDLE_GEMFILE: ""

name: ${{ format('Tests rails@{0} ruby@{1}', matrix.rails, matrix.ruby) }}

steps:
- uses: actions/checkout@v4
Expand Down
12 changes: 10 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@ gem "rake", "~> 13.0"

gem "minitest", "~> 5.0"

gem "rails"
gem "activerecord"
rails_version = ENV.fetch("RAILS_VERSION", "8.0")

rails_constraint = if rails_version == "main"
{github: "rails/rails"}
else
"~> #{rails_version}.0"
end

gem "rails", rails_constraint

gem "sqlite3"
gem "sqlite-ulid", require: "sqlite_ulid"

Expand Down
3 changes: 1 addition & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,10 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
activerecord
minitest (~> 5.0)
net-pop!
oaken!
rails
rails (~> 8.0.0)
rake (~> 13.0)
sqlite-ulid
sqlite3
Expand Down

0 comments on commit f7e191d

Please sign in to comment.