Skip to content

Commit

Permalink
feat: update CI workflow to build assets and adjust reachability checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ErwannRousseau committed Nov 24, 2024
1 parent ef695aa commit 37eb8fb
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,23 @@ jobs:
-
name: Start services
run: docker compose up --wait --no-build

-
name: Build Assets
run: |
docker compose exec -T php bin/console tailwind:build --minify
docker compose exec -T php bin/console asset-map:compile
-
name: Check HTTP reachability
run: curl -v --fail-with-body http://localhost
run: curl -v --fail-with-body http://app.localhost
-
name: Check HTTPS reachability
if: false # Remove this line when the homepage will be configured, or change the path to check
run: curl -vk --fail-with-body https://localhost
-
name: Check Mercure reachability
run: curl -vkI --fail-with-body https://localhost/.well-known/mercure?topic=test
-
name: Create test database
if: false # Remove this line if Doctrine ORM is installed
run: docker compose exec -T php bin/console -e test doctrine:database:create
-
name: Run migrations
if: false # Remove this line if Doctrine Migrations is installed
run: docker compose exec -T php bin/console -e test doctrine:migrations:migrate --no-interaction
run: curl -vk --fail-with-body https://app.localhost
-
name: Run PHPUnit
if: false # Remove this line if PHPUnit is installed
run: docker compose exec -T php bin/phpunit
-
name: Doctrine Schema Validator
if: false # Remove this line if Doctrine ORM is installed
run: docker compose exec -T php bin/console -e test doctrine:schema:validate

lint:
name: Docker Lint
runs-on: ubuntu-latest
Expand Down

0 comments on commit 37eb8fb

Please sign in to comment.