Skip to content

Commit

Permalink
ci(Docker): performing tests on custom Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Alcides Ramos committed Oct 4, 2024
1 parent c64be68 commit 7ebec7a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7ebec7a

Please sign in to comment.