Skip to content

Commit e2ea947

Browse files
committed
Review CircleCI new version.
1 parent 8a6e11c commit e2ea947

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.circleci/config.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,24 @@ version: 2.1 # Use 2.1 to enable using orbs and other features.
44
# Declare the orbs that we'll use in our config.
55
# read more about orbs: https://circleci.com/docs/2.0/orb-intro/
66
orbs:
7-
ruby: circleci/ruby@1.0
7+
ruby: circleci/ruby@2.1.0
88
node: circleci/node@2
99
browser-tools: circleci/browser-tools@1.3.0
1010

11+
executors:
12+
libraries:
13+
docker:
14+
- image: circleci/postgres:14.9-alpine
15+
environment:
16+
POSTGRES_USER: postgres
17+
POSTGRES_DB: oauth2id_test
18+
POSTGRES_PASSWORD: ""
19+
1120
jobs:
1221
build: # our first job, named "build"
1322
docker:
1423
- image: cimg/ruby:3.2.2-browsers
24+
executor: libraries
1525

1626
steps:
1727
- checkout # pull down our git code.
@@ -24,12 +34,13 @@ jobs:
2434
cache-key: "yarn.lock"
2535

2636
test: # our next job, called "test"
37+
docker:
38+
- image: cimg/ruby:3.2.2-browsers
39+
executor: libraries
40+
2741
# we run "parallel job containers" to enable speeding up our tests;
2842
# this splits our tests across multiple containers.
2943
parallelism: 3
30-
# here we set TWO docker images.
31-
docker:
32-
- image: cimg/ruby:3.0.4-browsers
3344

3445
# environment variables specific to Ruby/Rails, applied to the primary container.
3546
environment:
@@ -52,9 +63,6 @@ jobs:
5263
- run:
5364
name: Restore DB config
5465
command: cp config/database.yml.sample config/database.yml
55-
- run:
56-
name: Fix mutex_m version CI errors
57-
command: sed -i 's/mutex_m (0.2.0)/mutex_m (0.1.1)/g' Gemfile.lock
5866
- run:
5967
name: Database setup
6068
command: bundle exec rails db:schema:load --trace

0 commit comments

Comments
 (0)