File tree Expand file tree Collapse file tree 2 files changed +7
-15
lines changed Expand file tree Collapse file tree 2 files changed +7
-15
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
migrations :
13
13
timeout-minutes : 30
14
- runs-on : ubuntu-18 .04
14
+ runs-on : ubuntu-20 .04
15
15
services :
16
16
postgres :
17
- image : postgres:11
17
+ image : postgres:13
18
18
ports :
19
19
- 5432:5432
20
20
options : >-
@@ -23,13 +23,11 @@ jobs:
23
23
--health-timeout 5s
24
24
--health-retries 5
25
25
env :
26
- POSTGRES_USER : postgres
27
- POSTGRES_DB : ci_test
28
26
POSTGRES_PASSWORD : postgres
29
27
redis :
30
28
image : redis
31
29
ports :
32
- - 6379:6379
30
+ - 6379:6379
33
31
# Set health checks to wait until redis has started
34
32
options : >-
35
33
--health-cmd "redis-cli ping"
58
56
restore-keys : |
59
57
${{ runner.os }}-gems-parent-
60
58
61
- # Install gems, create data to be migrated and revert to PR merge commit
62
- - name : Create data to be migrated
59
+ - name : Install gems from base commit and create data to be migrated
63
60
env :
64
61
OXT_DB_USER : postgres
65
- OXT_TEST_DB : ci_test
66
62
OXT_DB_PASS : postgres
67
63
run : |
68
64
gem install bundler
@@ -81,12 +77,11 @@ jobs:
81
77
restore-keys : |
82
78
${{ runner.os }}-gems-pr-
83
79
84
- # Migrate the data
85
- - name : Migrate
80
+ - name : Install gems from PR, migrate and ensure no files changed
86
81
env :
87
82
OXT_DB_USER : postgres
88
- OXT_TEST_DB : ci_test
89
83
OXT_DB_PASS : postgres
90
84
run : |
91
85
bundle install --jobs 4 --retry 3
92
86
bundle exec rake db:migrate
87
+ git diff --exit-code
Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-20.04
15
15
services :
16
16
postgres :
17
- image : postgres:11
17
+ image : postgres:13
18
18
ports :
19
19
- 5432:5432
20
20
options : >-
23
23
--health-timeout 5s
24
24
--health-retries 5
25
25
env :
26
- POSTGRES_USER : postgres
27
- POSTGRES_DB : ci_test
28
26
POSTGRES_PASSWORD : postgres
29
27
strategy :
30
28
matrix :
48
46
env :
49
47
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
50
48
OXT_DB_USER : postgres
51
- OXT_TEST_DB : ci_test
52
49
OXT_DB_PASS : postgres
53
50
RAILS_ENV : test
54
51
run : |
You can’t perform that action at this time.
0 commit comments