diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 194da3f..35c7b9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 4be9248..3233856 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]