Skip to content

Commit 8d68fac

Browse files
committed
👷 CI config (ii)
- Linting
1 parent 238e2f4 commit 8d68fac

22 files changed

+242
-242
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// "forwardPorts": [],
1313

1414
// Use 'postCreateCommand' to run commands after the container is created.
15-
// "postCreateCommand": "ruby --version",
15+
"postCreateCommand": "bundle install",
1616

1717
// Configure tool-specific properties.
1818
"customizations" : {

.github/workflows/heads.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,21 @@ jobs:
4545
rubygems: default
4646
bundler: default
4747

48-
# truffleruby-head
49-
- ruby: "truffleruby-head"
50-
appraisal: "couch-1.17"
51-
exec_cmd: "rake spec:orm:couch_potato"
52-
gemfile: "Appraisal.root"
53-
rubygems: default
54-
bundler: default
55-
56-
# jruby-head
57-
- ruby: "jruby-head"
58-
appraisal: "couch-1.17"
59-
exec_cmd: "rake spec:orm:couch_potato"
60-
gemfile: "Appraisal.root"
61-
rubygems: default
62-
bundler: default
48+
# # truffleruby-head
49+
# - ruby: "truffleruby-head"
50+
# appraisal: "couch-1.17"
51+
# exec_cmd: "rake spec:orm:couch_potato"
52+
# gemfile: "Appraisal.root"
53+
# rubygems: default
54+
# bundler: default
55+
#
56+
# # jruby-head
57+
# - ruby: "jruby-head"
58+
# appraisal: "couch-1.17"
59+
# exec_cmd: "rake spec:orm:couch_potato"
60+
# gemfile: "Appraisal.root"
61+
# rubygems: default
62+
# bundler: default
6363

6464
steps:
6565
### COUCHDB

.github/workflows/jruby.yml

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
name: JRuby
2-
3-
env:
4-
K_SOUP_COV_DO: false
5-
6-
on:
7-
push:
8-
branches:
9-
- 'main'
10-
tags:
11-
- '!*' # Do not execute on tags
12-
pull_request:
13-
branches:
14-
- '*'
15-
# Allow manually triggering the workflow.
16-
workflow_dispatch:
17-
18-
permissions:
19-
contents: read
20-
21-
# Cancels all previous workflow runs for the same branch that have not yet completed.
22-
concurrency:
23-
# The concurrency group contains the workflow name and the branch name.
24-
group: "${{ github.workflow }}-${{ github.ref }}"
25-
cancel-in-progress: true
26-
27-
jobs:
28-
test:
29-
name: Specs ${{ matrix.ruby }} ${{ matrix.appraisal }}${{ matrix.name_extra || '' }}
30-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
31-
runs-on: ubuntu-22.04
32-
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
33-
env: # $BUNDLE_GEMFILE must be set at job level, so it is set for all steps
34-
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}.gemfile
35-
strategy:
36-
matrix:
37-
include:
38-
# jruby-9.2 (targets Ruby 2.5 compatibility)
39-
- ruby: "jruby-9.2"
40-
appraisal: "couch-1.17"
41-
exec_cmd: "rake spec:orm:couch_potato"
42-
gemfile: "Appraisal.root"
43-
rubygems: default
44-
bundler: default
45-
46-
# jruby-9.3 (targets Ruby 2.6 compatibility)
47-
- ruby: "jruby-9.3"
48-
appraisal: "couch-1.17"
49-
exec_cmd: "rake spec:orm:couch_potato"
50-
gemfile: "Appraisal.root"
51-
rubygems: default
52-
bundler: default
53-
54-
# jruby-9.4 (targets Ruby 3.1 compatibility)
55-
- ruby: "jruby-9.4"
56-
appraisal: "couch-1.17"
57-
exec_cmd: "rake spec:orm:couch_potato"
58-
gemfile: "Appraisal.root"
59-
rubygems: default
60-
bundler: default
61-
62-
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-
77-
- name: Checkout
78-
uses: actions/checkout@v4
79-
80-
- name: Setup Ruby & RubyGems
81-
uses: ruby/setup-ruby@v1
82-
with:
83-
ruby-version: ${{ matrix.ruby }}
84-
rubygems: ${{ matrix.rubygems }}
85-
bundler: ${{ matrix.bundler }}
86-
bundler-cache: false
87-
88-
# Raw `bundle` will use the BUNDLE_GEMFILE set to matrix.gemfile (i.e. Appraisal.root)
89-
# We need to do this first to get appraisal installed.
90-
# NOTE: This does not use the main Gemfile at all.
91-
- name: Install Root Appraisal
92-
run: bundle
93-
- name: Appraisal for ${{ matrix.appraisal }}
94-
run: bundle exec appraisal ${{ matrix.appraisal }} bundle
95-
- name: Tests for ${{ matrix.ruby }} via ${{ matrix.exec_cmd }}
96-
run: bundle exec appraisal ${{ matrix.appraisal }} bundle exec ${{ matrix.exec_cmd }}
1+
#name: JRuby
2+
#
3+
#env:
4+
# K_SOUP_COV_DO: false
5+
#
6+
#on:
7+
# push:
8+
# branches:
9+
# - 'main'
10+
# tags:
11+
# - '!*' # Do not execute on tags
12+
# pull_request:
13+
# branches:
14+
# - '*'
15+
# # Allow manually triggering the workflow.
16+
# workflow_dispatch:
17+
#
18+
#permissions:
19+
# contents: read
20+
#
21+
## Cancels all previous workflow runs for the same branch that have not yet completed.
22+
#concurrency:
23+
# # The concurrency group contains the workflow name and the branch name.
24+
# group: "${{ github.workflow }}-${{ github.ref }}"
25+
# cancel-in-progress: true
26+
#
27+
#jobs:
28+
# test:
29+
# name: Specs ${{ matrix.ruby }} ${{ matrix.appraisal }}${{ matrix.name_extra || '' }}
30+
# if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
31+
# runs-on: ubuntu-22.04
32+
# continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
33+
# env: # $BUNDLE_GEMFILE must be set at job level, so it is set for all steps
34+
# BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}.gemfile
35+
# strategy:
36+
# matrix:
37+
# include:
38+
# # jruby-9.2 (targets Ruby 2.5 compatibility)
39+
# - ruby: "jruby-9.2"
40+
# appraisal: "couch-1.17"
41+
# exec_cmd: "rake spec:orm:couch_potato"
42+
# gemfile: "Appraisal.root"
43+
# rubygems: default
44+
# bundler: default
45+
#
46+
# # jruby-9.3 (targets Ruby 2.6 compatibility)
47+
# - ruby: "jruby-9.3"
48+
# appraisal: "couch-1.17"
49+
# exec_cmd: "rake spec:orm:couch_potato"
50+
# gemfile: "Appraisal.root"
51+
# rubygems: default
52+
# bundler: default
53+
#
54+
# # jruby-9.4 (targets Ruby 3.1 compatibility)
55+
# - ruby: "jruby-9.4"
56+
# appraisal: "couch-1.17"
57+
# exec_cmd: "rake spec:orm:couch_potato"
58+
# gemfile: "Appraisal.root"
59+
# rubygems: default
60+
# bundler: default
61+
#
62+
# 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+
#
77+
# - name: Checkout
78+
# uses: actions/checkout@v4
79+
#
80+
# - name: Setup Ruby & RubyGems
81+
# uses: ruby/setup-ruby@v1
82+
# with:
83+
# ruby-version: ${{ matrix.ruby }}
84+
# rubygems: ${{ matrix.rubygems }}
85+
# bundler: ${{ matrix.bundler }}
86+
# bundler-cache: false
87+
#
88+
# # Raw `bundle` will use the BUNDLE_GEMFILE set to matrix.gemfile (i.e. Appraisal.root)
89+
# # We need to do this first to get appraisal installed.
90+
# # NOTE: This does not use the main Gemfile at all.
91+
# - name: Install Root Appraisal
92+
# run: bundle
93+
# - name: Appraisal for ${{ matrix.appraisal }}
94+
# run: bundle exec appraisal ${{ matrix.appraisal }} bundle
95+
# - name: Tests for ${{ matrix.ruby }} via ${{ matrix.exec_cmd }}
96+
# run: bundle exec appraisal ${{ matrix.appraisal }} bundle exec ${{ matrix.exec_cmd }}

0 commit comments

Comments
 (0)