feat/php-linter (#5321)
All checks were successful
continuous-integration/drone/push Build is passing

At least helps with #5297

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5321
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
This commit was merged in pull request #5321.
This commit is contained in:
2025-09-24 18:13:46 +00:00
committed by tobiasd
parent fc303e213f
commit b390c5472e
11 changed files with 530 additions and 499 deletions

View File

@@ -4,6 +4,7 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Install deps
RUN apt-get update && apt-get install --yes --no-install-recommends \
composer \
coreutils \
curl \
file \
@@ -16,12 +17,17 @@ libxslt1.1 \
mediainfo \
npm \
perl-base \
php-zip \
rsync \
sed \
shfmt
# Install prettier
RUN npm install -g prettier
# Install php cs fixer
RUN composer global require friendsofphp/php-cs-fixer
# Add composer to path
ENV PATH="/root/.composer/vendor/bin:$PATH"
# Set uv project env, to persist stuff moving dirs
ENV UV_PROJECT_ENVIRONMENT=/root/.cache/uv/venv
# Add vent to path