From 7ebec7a5d3f6125f8a3aa6b1d7f32d73835fa130 Mon Sep 17 00:00:00 2001 From: Alcides Ramos Date: Fri, 4 Oct 2024 20:35:54 +0200 Subject: [PATCH] ci(Docker): performing tests on custom Docker image --- .github/workflows/ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fc8926..545a43a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,4 +25,19 @@ jobs: run: docker build --file Dockerfile --target build-development --tag dockerized-php:dev . - name: Validate composer.json and composer.lock - run: docker run --rm --interactive --tty --mount type=bind,source="$(pwd)"/src,target=/var/www/html dockerized-php:dev composer validate --working-dir=. --strict + run: docker run --rm --interactive --mount type=bind,source="$(pwd)"/src,target=/var/www/html dockerized-php:dev composer validate --working-dir=. --strict + + - name: Install PHP dependencies + run: docker run --interactive --mount type=bind,source="$(pwd)"/src,target=/var/www/html dockerized-php:dev composer install --working-dir=. --no-interaction --no-progress --ansi + + - name: Check Syntax + run: docker run --interactive --mount type=bind,source="$(pwd)"/src,target=/var/www/html dockerized-php:dev composer check-syntax + + - name: Check Style + run: docker run --interactive --mount type=bind,source="$(pwd)"/src,target=/var/www/html dockerized-php:dev composer check-style + + - name: Check PHPStan + run: docker run --interactive --mount type=bind,source="$(pwd)"/src,target=/var/www/html dockerized-php:dev composer phpstan + + - name: Check PHPUnit + run: docker run --interactive --mount type=bind,source="$(pwd)"/src,target=/var/www/html dockerized-php:dev composer tests