mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-20 20:13:37 +00:00
fix(justfile): remove hard-coded service name
Add the service name as a parameter and include it from the `phpunit` recipe.
This commit is contained in:
parent
5c6e25a660
commit
1303656f4a
|
@ -10,7 +10,7 @@ composer *args:
|
||||||
alias phpunit := test
|
alias phpunit := test
|
||||||
|
|
||||||
test *args:
|
test *args:
|
||||||
{{ "just _run phpunit {{ args }}" | raw }}
|
{{ "just _run php phpunit {{ args }}" | raw }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if "drupal-project" is same as type %}
|
{% if "drupal-project" is same as type %}
|
||||||
|
@ -52,5 +52,5 @@ artisan *args:
|
||||||
_exec +args:
|
_exec +args:
|
||||||
{{ "docker compose exec {{ args }}" | raw }}
|
{{ "docker compose exec {{ args }}" | raw }}
|
||||||
|
|
||||||
_run command *args:
|
_run service command *args:
|
||||||
{{ "docker compose run --rm --no-deps --entrypoint {{ command }} --tty php {{ args }}" | raw }}
|
{{ "docker compose run --rm --no-deps --entrypoint {{ command }} --tty {{ service }} {{ args }}" | raw }}
|
||||||
|
|
Loading…
Reference in a new issue