From 37eb8fb03f7ff853e704070a4324fc1d039f769e Mon Sep 17 00:00:00 2001 From: ErwannRousseau Date: Sun, 24 Nov 2024 12:49:23 +0100 Subject: [PATCH] feat: update CI workflow to build assets and adjust reachability checks --- .github/workflows/ci.yml | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b0f691..6c8fed4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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