Skip to content

Commit 1493ad3

Browse files
committed
Run Standardrb on CI
1 parent f03e4c6 commit 1493ad3

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
matrix:
2222
ruby:
2323
- 3.4.1
24-
- 3.3.6
25-
- 3.2.6
24+
# - 3.3.6
25+
# - 3.2.6
2626

2727
steps:
2828
- name: Checkout code
@@ -34,17 +34,26 @@ jobs:
3434
- name: Run tests
3535
run: docker compose run ci
3636

37+
3738
standardrb:
38-
name: standardrb
39-
runs-on: ubuntu-22.04
39+
name: Run standardrb
40+
runs-on: ubuntu-20.04 # TODO: Change back to 'ubuntu-latest' when https://github.com/microsoft/mssql-docker/issues/899 resolved.
41+
42+
env:
43+
COMPOSE_FILE: compose.ci.yaml
44+
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
ruby:
49+
- 3.4.1
50+
4051
steps:
41-
- uses: actions/checkout@v4
52+
- name: Checkout code
53+
uses: actions/checkout@v2
4254

43-
- uses: ruby/setup-ruby@v1
44-
with:
45-
ruby-version: "3.4.1"
46-
bundler-cache: true
55+
- name: Build docker images
56+
run: docker compose build --build-arg TARGET_VERSION=${{ matrix.ruby }}
4757

48-
- name: Check standardrb
49-
shell: bash
50-
run: bundle exec standardrb
58+
- name: Run tests
59+
run: docker compose run standardrb

compose.ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ services:
1212
command: wait-for sqlserver:1433 -- bundle exec rake test
1313
depends_on:
1414
- "sqlserver"
15+
standardrb:
16+
environment:
17+
- RAILS_BRANCH=main
18+
build:
19+
context: .
20+
dockerfile: Dockerfile.ci
21+
command: bundle exec standardrb

0 commit comments

Comments
 (0)