Skip to content

Commit a87e713

Browse files
committed
ci: make postgres based on job
1 parent a38226c commit a87e713

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/test-projects.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
{
2121
org: "team-alembic",
2222
name: "ash_authentication",
23-
test-cmd: "mix test --only igniter"
23+
test-cmd: "mix test --only igniter",
24+
postgres: true
2425
},
2526
{
2627
org: "team-alembic",
@@ -30,12 +31,14 @@ jobs:
3031
{
3132
org: "BeaconCMS",
3233
name: "beacon",
33-
test-cmd: "mix test --only igniter"
34+
test-cmd: "mix test --only igniter",
35+
postgres: true
3436
},
3537
{
3638
org: "BeaconCMS",
3739
name: "beacon_live_admin",
38-
test-cmd: "mix test --only igniter"
40+
test-cmd: "mix test --only igniter",
41+
postgres: true
3942
},
4043
{
4144
org: "oban-bg",
@@ -47,6 +50,7 @@ jobs:
4750
elixir: ["1.18.1"]
4851
services:
4952
pg:
53+
if: ${{matrix.project.postgres}}
5054
image: postgres:16
5155
env:
5256
POSTGRES_USER: postgres

0 commit comments

Comments
 (0)