mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-23 02:27:33 +00:00
ci: run PHPStan static analysis
This commit is contained in:
parent
484ff14d1f
commit
96a7cd3cef
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
13
Dockerfile
13
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"]
|
||||
|
|
Loading…
Reference in a new issue