File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ master ]
88
9+ # ------------------------------------------------------------
10+ # Matrix definition – all DB‑specific fields live here
11+ # ------------------------------------------------------------
912jobs :
1013 test :
1114 strategy :
1417 rails : [ '7.0', '7.1' ]
1518 db : [ sqlite3, postgresql, mysql ]
1619
17- # -----------------------------------------------------------------
18- # Define every service‑specific field **once** in `include`.
19- # All values are plain YAML – no `${{ }}` inside `services`.
20- # -----------------------------------------------------------------
2120 include :
2221 # ---------- PostgresQL ----------
2322 - rails : ' 7.0'
@@ -79,19 +78,18 @@ jobs:
7978 --health-timeout 5s
8079 --health-retries 5
8180
81+ # --------------------------------------------------------
82+ # Runner & Service definition – **outside** the matrix
83+ # --------------------------------------------------------
8284 runs-on : ubuntu-latest
83-
84- # Run the job inside the Ruby Docker image
8585 container : ${{ matrix.ruby_image }}
8686
87- # -----------------------------------------------------------------
88- # Service definition – **no expressions** here.
89- # -----------------------------------------------------------------
9087 services :
9188 db :
9289 image : ${{ matrix.db_image }}
9390 env : ${{ matrix.db_env }}
94- ports : ${{ matrix.db_ports }} # array from `include`
91+ ports :
92+ - ${{ matrix.db_ports[0] }}
9593 options : ${{ matrix.db_options }}
9694
9795 env :
You can’t perform that action at this time.
0 commit comments