@@ -4,14 +4,24 @@ version: 2.1 # Use 2.1 to enable using orbs and other features.
4
4
# Declare the orbs that we'll use in our config.
5
5
# read more about orbs: https://circleci.com/docs/2.0/orb-intro/
6
6
orbs :
7
- ruby : circleci/ruby@1.0
7
+ ruby : circleci/ruby@2. 1.0
8
8
node : circleci/node@2
9
9
browser-tools : circleci/browser-tools@1.3.0
10
10
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
+
11
20
jobs :
12
21
build : # our first job, named "build"
13
22
docker :
14
23
- image : cimg/ruby:3.2.2-browsers
24
+ executor : libraries
15
25
16
26
steps :
17
27
- checkout # pull down our git code.
@@ -24,12 +34,13 @@ jobs:
24
34
cache-key : " yarn.lock"
25
35
26
36
test : # our next job, called "test"
37
+ docker :
38
+ - image : cimg/ruby:3.2.2-browsers
39
+ executor : libraries
40
+
27
41
# we run "parallel job containers" to enable speeding up our tests;
28
42
# this splits our tests across multiple containers.
29
43
parallelism : 3
30
- # here we set TWO docker images.
31
- docker :
32
- - image : cimg/ruby:3.0.4-browsers
33
44
34
45
# environment variables specific to Ruby/Rails, applied to the primary container.
35
46
environment :
52
63
- run :
53
64
name : Restore DB config
54
65
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
58
66
- run :
59
67
name : Database setup
60
68
command : bundle exec rails db:schema:load --trace
0 commit comments