Skip to content

Commit 4106113

Browse files
committed
ci: run test-cmd in project
1 parent 7b44051 commit 4106113

1 file changed

Lines changed: 27 additions & 14 deletions

File tree

.github/workflows/test-projects.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
project: [
15-
{ org: "ash-project", name: "ash", with: "phx.new", true, install: "ash ash_postgres ash_money ash_graphql ash_json_api ash_authentication ash_authentication_phoenix ash_oban ash_paper_trail ash_admin ash_double_entry ash_state_machine ash_appsignal", flags: "--auth-strategy password,magic_link"},
16-
{ org: "oban-bg", name: "oban", with: "phx.new", install: "oban"},
17-
# { org: "BeaconCMS", name: "beacon", phx_new: true, install: "beacon beacon_live_admin", flags: "--beacon.site cms"}
15+
{
16+
org: "ash-project",
17+
name: "ash",
18+
test-cmd: "test --only igniter"
19+
}
1820
]
1921
otp: ["27.2"]
2022
elixir: ["1.18.1"]
@@ -51,14 +53,25 @@ jobs:
5153
- name: mix compile --force --warnings-as-errors inside ./${{matrix.project.name}}
5254
run: mix compile --force --warnings-as-errors
5355
working-directory: ./${{matrix.project.name}}
54-
- run: mix archive.install hex igniter_new --force
55-
- run: mix archive.install hex phx_new --force
56-
- run: mix igniter.new my_app --with ${{matrix.project.with}}
57-
- run: mix deps.update igniter
58-
working-directory: my_app
59-
- run: mix igniter.add igniter@path:../igniter --yes
60-
working-directory: my_app
61-
- run: mix igniter.install ${{matrix.project.install}} ${{matrix.project.flags}} --yes
62-
working-directory: my_app
63-
- run: mix compile --warnings-as-errors
64-
working-directory: my_app
56+
- name: ${{matrix.project.test-cmd}} inside ./${{matrix.project.name}}
57+
run: ${{matrix.project.test-cmd}}
58+
if: mix ${{matrix.project.test-cmd}}
59+
working-directory: ./${{matrix.project.name}}
60+
# - run: mix archive.install hex igniter_new --force
61+
# if: ${{matrix.project.with}}
62+
# - run: mix archive.install hex phx_new --force
63+
# if: ${{matrix.project.with}}
64+
# - run: mix igniter.new my_app --with ${{matrix.project.with}}
65+
# if: ${{matrix.project.with}}
66+
# - run: mix deps.update igniter
67+
# if: ${{matrix.project.with}}
68+
# working-directory: my_app
69+
# - run: mix igniter.add igniter@path:../igniter --yes
70+
# if: ${{matrix.project.with}}
71+
# working-directory: my_app
72+
# - run: mix igniter.install ${{matrix.project.install}} ${{matrix.project.flags}} --yes
73+
# if: ${{matrix.project.with}}
74+
# working-directory: my_app
75+
# - run: mix compile --warnings-as-errors
76+
# if: ${{matrix.project.with}}
77+
# working-directory: my_app

0 commit comments

Comments
 (0)