Skip to content

Commit 898c101

Browse files
authoredFeb 24, 2024
Merge pull request #221 from jespersandnielsen/development
Update Circleci workflow
2 parents 7d626d1 + 6ed353a commit 898c101

File tree

4 files changed

+25
-17
lines changed

4 files changed

+25
-17
lines changed
 

‎.circleci/config.yml

+18-10
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ version: 2.1
33
jobs:
44
build:
55
docker:
6-
- image: circleci/<< parameters.ruby_version >>
7-
- image: circleci/postgres:9.6.2-alpine
8-
- image: circleci/mysql:5.7
6+
- image: << parameters.ruby_version >>
7+
- image: postgres:11.19-alpine
8+
environment:
9+
POSTGRES_HOST_AUTH_METHOD: "trust"
10+
- image: mysql:5.7
911
environment:
1012
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
1113
parameters:
@@ -32,12 +34,16 @@ jobs:
3234
# - vendor/bundle
3335

3436
- run:
35-
name: Install postgres client
36-
command: sudo apt install -y postgresql-client
37+
name: Update apt
38+
command: apt update -y
39+
40+
- run:
41+
name: Install dependencies
42+
command: apt install -y curl postgresql-client default-mysql-client
3743

3844
- run:
39-
name: Install mysql client
40-
command: sudo apt install -y default-mysql-client
45+
name: Install dockerize
46+
command: curl -sfL $(curl -s https://api.github.com/repos/powerman/dockerize/releases/latest | grep -i /dockerize-$(uname -s)-$(uname -m)\" | cut -d\" -f4) | install /dev/stdin /usr/local/bin/dockerize
4147

4248
- run:
4349
name: Configure config database.yml
@@ -69,10 +75,12 @@ workflows:
6975
- build:
7076
matrix:
7177
parameters:
72-
ruby_version: ["ruby:2.6-buster", "ruby:2.7-buster", "ruby:3.0-buster"]
78+
ruby_version: ["ruby:2.7-buster", "ruby:3.0-buster", "ruby:3.1-buster", "ruby:3.2-buster"]
7379
gemfile: ["gemfiles/rails_5_2.gemfile", "gemfiles/rails_6_0.gemfile", "gemfiles/rails_6_1.gemfile", "gemfiles/rails_7_0.gemfile"]
7480
exclude:
7581
- ruby_version: "ruby:3.0-buster"
7682
gemfile: "gemfiles/rails_5_2.gemfile"
77-
- ruby_version: "ruby:2.6-buster"
78-
gemfile: "gemfiles/rails_7_0.gemfile"
83+
- ruby_version: "ruby:3.1-buster"
84+
gemfile: "gemfiles/rails_5_2.gemfile"
85+
- ruby_version: "ruby:3.2-buster"
86+
gemfile: "gemfiles/rails_5_2.gemfile"

‎.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.5
1+
2.7.7

‎gemfiles/rails_7_0.gemfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ platforms :ruby do
99
end
1010

1111
platforms :jruby do
12-
gem "activerecord-jdbc-adapter", "~> 61.0"
13-
gem "activerecord-jdbcpostgresql-adapter", "~> 61.0"
14-
gem "activerecord-jdbcmysql-adapter", "~> 61.0"
12+
gem "activerecord-jdbc-adapter", "~> 70.1"
13+
gem "activerecord-jdbcpostgresql-adapter", "~> 70.1"
14+
gem "activerecord-jdbcmysql-adapter", "~> 70.1"
1515
end
1616

1717
gemspec path: "../"

‎gemfiles/rails_master.gemfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ platforms :ruby do
99
end
1010

1111
platforms :jruby do
12-
gem "activerecord-jdbc-adapter", "~> 61.0"
13-
gem "activerecord-jdbcpostgresql-adapter", "~> 61.0"
14-
gem "activerecord-jdbcmysql-adapter", "~> 61.0"
12+
gem "activerecord-jdbc-adapter", "~> 70.1"
13+
gem "activerecord-jdbcpostgresql-adapter", "~> 70.1"
14+
gem "activerecord-jdbcmysql-adapter", "~> 70.1"
1515
end
1616

1717
gemspec path: "../"

0 commit comments

Comments
 (0)