Skip to content

Commit 927e33e

Browse files
committed
Update CI workflow to use Castor and simplify commands
Replaced 'make' commands in the CI workflow with 'castor' commands for better consistency and maintainability. Removed redundant 'install' and 'compile assets' steps and adjusted service reachability checks to point to default ports. Minor cleanup in `frontend` function call in `castor.php`.
1 parent 89e36e7 commit 927e33e

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
- name: Check security
3232
uses: symfonycorp/security-checker-action@v2
3333
- name: Pull images
34-
run: make build
34+
run: castor build
3535
- name: Start services
36-
run: make up
36+
run: castor start
3737
- name: Wait for services
3838
run: |
3939
while status="$(docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" "$(docker compose ps -q php)")"; do
@@ -44,11 +44,7 @@ jobs:
4444
esac
4545
done
4646
exit 1
47-
- name: Install dependencies
48-
run: make install
49-
- name: Compile assets
50-
run: make assets
5147
- name: Check HTTP reachability
52-
run: curl http://localhost:8080
48+
run: curl http://localhost
5349
- name: Check HTTPS reachability
54-
run: curl -k https://localhost:8443
50+
run: curl -k https://localhost

castor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function start(string $xdebugMode = 'develop', bool $fixtures = false): void
226226
if ($fixtures) {
227227
console(['doctrine:fixtures:load', '--no-interaction']);
228228
}
229-
frontend(true);
229+
frontend();
230230
}
231231

232232
#[AsTask(description: 'Build the images.')]

0 commit comments

Comments
 (0)