Skip to content

Commit

Permalink
Refresh dependencies and revise CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Envek committed Jun 13, 2024
1 parent 9cf9bdd commit 10fde7d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ jobs:
- ruby: "head"
activerecord: "head"
database: sqlite
- ruby: "3.2"
activerecord: "7.0"
- ruby: "3.3"
activerecord: "7.1"
database: postgresql
- ruby: "3.2"
activerecord: "7.0"
- ruby: "3.3"
activerecord: "7.1"
database: mysql
- ruby: "3.3"
activerecord: "7.1"
database: sqlite
- ruby: "3.2"
activerecord: "7.0"
database: sqlite
Expand All @@ -34,15 +37,12 @@ jobs:
- ruby: "3.0"
activerecord: "6.0"
database: sqlite
- ruby: "2.7"
activerecord: "5.2"
database: sqlite

runs-on: ubuntu-latest

services:
postgres:
image: postgres:15
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand All @@ -54,7 +54,7 @@ jobs:
--health-timeout 5s
--health-retries 5
mysql:
image: mysql:8.0
image: mysql:8.4
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: evil_seed_test
Expand All @@ -70,7 +70,7 @@ jobs:
POSTGRES_PASSWORD: postgres

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in evil-seed.gemspec
gemspec

activerecord_version = ENV.fetch("ACTIVERECORD_VERSION", "~> 7.0")
activerecord_version = ENV.fetch("ACTIVERECORD_VERSION", "~> 7.1")
case activerecord_version.upcase
when "HEAD"
git "https://github.com/rails/rails.git" do
Expand All @@ -15,4 +15,5 @@ when "HEAD"
else
activerecord_version = "~> #{activerecord_version}.0" if activerecord_version.match?(/^\d+\.\d+$/)
gem "activerecord", activerecord_version
gem "sqlite3", "~> 1.4"
end
2 changes: 1 addition & 1 deletion test/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def create_schema!

create_table :roles do |t|
t.string :name
t.string :permissions, array: true
t.string :permissions, **(ENV["DB"] == "postgresql" ? { array: true } : {})
end

create_table :user_roles, id: false do |t|
Expand Down

0 comments on commit 10fde7d

Please sign in to comment.