ci: run PHPStan static analysis

This commit is contained in:
Oliver Davies 2023-03-08 21:50:15 +00:00
parent 484ff14d1f
commit 96a7cd3cef
2 changed files with 22 additions and 0 deletions

View file

@ -17,3 +17,12 @@ jobs:
run: |
docker image build . \
--tag build-configs
- name: Run PHPStan
run: |
docker run \
--rm \
--interactive \
--entrypoint phpstan \
build-configs \
--no-progress

View file

@ -2,4 +2,17 @@ FROM php:8.1-cli
WORKDIR /app
RUN apt-get update -yqq \
&& apt-get install -yqq git unzip
ENV PATH="${PATH}:/app/vendor/bin"
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY composer.* ./
RUN composer install
COPY . .
ENTRYPOINT ["bash"]