Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
{
"name": "texthtml/maybe",
"build": {
"dockerfile": "../.docker/Dockerfile",
// Update 'VARIANT' to pick an Alpine version: 3.12, 3.13, 3.14, 3.15
"args": { "VARIANT": "3.14" }
"dockerfile": "../.docker/Dockerfile"
},
"workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind",
"workspaceFolder": "/app",
Expand Down
15 changes: 12 additions & 3 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \
apt-get install -y libzip-dev && \
docker-php-ext-install zip

RUN pecl install xdebug && docker-php-ext-enable xdebug

RUN curl -sLo /usr/bin/phpdoc https://phpdoc.org/phpDocumentor.phar && chmod +x /usr/bin/phpdoc
# xdebug >= 3.6 is required for PHP 8.6 (pecl is no longer shipped in the php image)
# renovate: datasource=github-tags depName=xdebug/xdebug versioning=pep440
ARG XDEBUG_VERSION=3.6.0alpha1
RUN docker-php-source extract && \
mkdir /usr/src/php/ext/xdebug && \
curl -fsSL https://github.com/xdebug/xdebug/archive/refs/tags/${XDEBUG_VERSION}.tar.gz | tar xz --strip-components=1 -C /usr/src/php/ext/xdebug && \
docker-php-ext-install xdebug && \
docker-php-source delete

# renovate: datasource=github-releases depName=phpDocumentor/phpDocumentor extractVersion=^v(?<version>.*)$
ARG PHPDOCUMENTOR_VERSION=3.10.0
RUN curl -fsSLo /usr/bin/phpdoc https://github.com/phpDocumentor/phpDocumentor/releases/download/v${PHPDOCUMENTOR_VERSION}/phpDocumentor.phar && chmod +x /usr/bin/phpdoc

RUN mkdir /app && chown ${USERNAME}: /app

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ "main" ]

env:
# renovate: datasource=docker depName=php
PHP_VERSION: "8.3"

jobs:
build:

Expand All @@ -20,7 +24,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: ${{ env.PHP_VERSION }}
ini-values: zend.assertions=1, assert.exception=1

- name: Validate composer.json and composer.lock
Expand Down
9 changes: 7 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
"config:recommended",
"customManagers:githubActionsVersions",
"customManagers:dockerfileVersions"
],
"lockFileMaintenance": {
"enabled": true
}
}
Loading