Skip to content

Commit 238e2f4

Browse files
committed
👷 CI config (i)
1 parent 8e5afe6 commit 238e2f4

File tree

4 files changed

+58
-19
lines changed

4 files changed

+58
-19
lines changed

.github/workflows/coverage.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,17 @@ jobs:
5252
### COUCHDB
5353
- name: Start CouchDB
5454
uses: iamssen/couchdb-github-action@master
55-
if: "endsWith(matrix.exec_cmd, 'couch_potato')"
5655
with:
5756
couchdb-version: "3.4.1"
5857

5958
### MONGODB
6059
- name: Start MongoDB
6160
uses: supercharge/mongodb-github-action@1.12.0
62-
if: "endsWith(matrix.exec_cmd, 'mongoid')"
6361
with:
6462
mongodb-version: "8.0"
6563

6664
### SMOKE-TEST
6765
- name: Smoke CouchDB
68-
if: "endsWith(matrix.exec_cmd, 'couch_potato')"
6966
run: |
7067
curl -f http://127.0.0.1:5984/
7168
curl -X POST -H "Content-Type: application/json; charset=utf-8" -d '{"name": "admin", "password": "password"}' http://127.0.0.1:5984/_session

.github/workflows/heads.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,35 @@ jobs:
4747

4848
# truffleruby-head
4949
- ruby: "truffleruby-head"
50-
appraisal: "ar-8-0"
51-
exec_cmd: "rake spec:orm:active_record"
50+
appraisal: "couch-1.17"
51+
exec_cmd: "rake spec:orm:couch_potato"
5252
gemfile: "Appraisal.root"
5353
rubygems: default
5454
bundler: default
5555

5656
# jruby-head
5757
- ruby: "jruby-head"
58-
appraisal: "ar-8-0"
59-
exec_cmd: "rake spec:orm:active_record"
58+
appraisal: "couch-1.17"
59+
exec_cmd: "rake spec:orm:couch_potato"
6060
gemfile: "Appraisal.root"
6161
rubygems: default
6262
bundler: default
6363

6464
steps:
65+
### COUCHDB
66+
- name: Start CouchDB
67+
uses: iamssen/couchdb-github-action@master
68+
if: "endsWith(matrix.exec_cmd, 'couch_potato')"
69+
with:
70+
couchdb-version: "3.4.1"
71+
72+
### SMOKE-TEST
73+
- name: Smoke CouchDB
74+
if: "endsWith(matrix.exec_cmd, 'couch_potato')"
75+
run: |
76+
curl -f http://127.0.0.1:5984/
77+
curl -X POST -H "Content-Type: application/json; charset=utf-8" -d '{"name": "admin", "password": "password"}' http://127.0.0.1:5984/_session
78+
6579
- name: Checkout
6680
uses: actions/checkout@v4
6781

.github/workflows/jruby.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,43 @@ jobs:
3737
include:
3838
# jruby-9.2 (targets Ruby 2.5 compatibility)
3939
- ruby: "jruby-9.2"
40-
appraisal: "ar-6-1"
41-
exec_cmd: "rake spec:orm:active_record"
40+
appraisal: "couch-1.17"
41+
exec_cmd: "rake spec:orm:couch_potato"
4242
gemfile: "Appraisal.root"
4343
rubygems: default
4444
bundler: default
4545

4646
# jruby-9.3 (targets Ruby 2.6 compatibility)
4747
- ruby: "jruby-9.3"
48-
appraisal: "ar-6-1"
49-
exec_cmd: "rake spec:orm:active_record"
48+
appraisal: "couch-1.17"
49+
exec_cmd: "rake spec:orm:couch_potato"
5050
gemfile: "Appraisal.root"
5151
rubygems: default
5252
bundler: default
5353

5454
# jruby-9.4 (targets Ruby 3.1 compatibility)
5555
- ruby: "jruby-9.4"
56-
appraisal: "ar-7-2"
57-
exec_cmd: "rake spec:orm:active_record"
56+
appraisal: "couch-1.17"
57+
exec_cmd: "rake spec:orm:couch_potato"
5858
gemfile: "Appraisal.root"
5959
rubygems: default
6060
bundler: default
6161

6262
steps:
63+
### COUCHDB
64+
- name: Start CouchDB
65+
uses: iamssen/couchdb-github-action@master
66+
if: "endsWith(matrix.exec_cmd, 'couch_potato')"
67+
with:
68+
couchdb-version: "3.4.1"
69+
70+
### SMOKE-TEST
71+
- name: Smoke CouchDB
72+
if: "endsWith(matrix.exec_cmd, 'couch_potato')"
73+
run: |
74+
curl -f http://127.0.0.1:5984/
75+
curl -X POST -H "Content-Type: application/json; charset=utf-8" -d '{"name": "admin", "password": "password"}' http://127.0.0.1:5984/_session
76+
6377
- name: Checkout
6478
uses: actions/checkout@v4
6579

.github/workflows/truffle.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,29 +38,43 @@ jobs:
3838
# NOTE: truffleruby does not support upgrading rubygems.
3939
# truffleruby-22.3 (targets Ruby 3.0 compatibility)
4040
- ruby: "truffleruby-22.3"
41-
appraisal: "ar-7-1"
42-
exec_cmd: "rake spec:orm:active_record"
41+
appraisal: "couch-1.17"
42+
exec_cmd: "rake spec:orm:couch_potato"
4343
gemfile: "Appraisal.root"
4444
rubygems: default
4545
bundler: default
4646

4747
# truffleruby-23.0 (targets Ruby 3.1 compatibility)
4848
- ruby: "truffleruby-23.0"
49-
appraisal: "ar-7-2"
50-
exec_cmd: "rake spec:orm:active_record"
49+
appraisal: "couch-1.17"
50+
exec_cmd: "rake spec:orm:couch_potato"
5151
gemfile: "Appraisal.root"
5252
rubygems: default
5353
bundler: default
5454

5555
# truffleruby-23.1 (targets Ruby 3.2 compatibility)
5656
- ruby: "truffleruby-23.1"
57-
appraisal: "ar-8-0"
58-
exec_cmd: "rake spec:orm:active_record"
57+
appraisal: "couch-1.17"
58+
exec_cmd: "rake spec:orm:couch_potato"
5959
gemfile: "Appraisal.root"
6060
rubygems: default
6161
bundler: default
6262

6363
steps:
64+
### COUCHDB
65+
- name: Start CouchDB
66+
uses: iamssen/couchdb-github-action@master
67+
if: "endsWith(matrix.exec_cmd, 'couch_potato')"
68+
with:
69+
couchdb-version: "3.4.1"
70+
71+
### SMOKE-TEST
72+
- name: Smoke CouchDB
73+
if: "endsWith(matrix.exec_cmd, 'couch_potato')"
74+
run: |
75+
curl -f http://127.0.0.1:5984/
76+
curl -X POST -H "Content-Type: application/json; charset=utf-8" -d '{"name": "admin", "password": "password"}' http://127.0.0.1:5984/_session
77+
6478
- name: Checkout
6579
uses: actions/checkout@v4
6680

0 commit comments

Comments
 (0)