Skip to content

[BUGFIX] Make the unresolved-reference marker perceivable #2979

[BUGFIX] Make the unresolved-reference marker perceivable

[BUGFIX] Make the unresolved-reference marker perceivable #2979

Workflow file for this run

name: "Main"
on: # yamllint disable-line rule:truthy
pull_request: null
push:
branches:
- "main"
# Required for the merge queue on "main": without this trigger, queued
# merges never receive their required status checks and time out.
merge_group: null
env:
DEFAULT_PHP_VERSION: "8.2"
RUN_ENVIRONMENT: "local"
# The job names below ("Tests (8.x)", "Quality", ...) are configured as
# required status checks for the merge queue on "main". Renaming a job or
# changing how its checks are reported requires updating the branch ruleset
# in the same change, or the merge queue will block all merges.
jobs:
tests:
name : Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: "Install PHP"
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
coverage: "none"
php-version: "${{ matrix.php }}"
extensions: 'inotify, pcntl'
- name: "Get Composer cache directory"
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- name: "Cache Composer dependencies"
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: php-${{ matrix.php }}-composer-
- name: "Install dependencies with Composer"
run: composer install --no-interaction --no-progress --prefer-dist
- name: "Run unit tests"
run: "make test-unit ENV=${{ env.RUN_ENVIRONMENT }}"
- name: "Run integration tests"
run: "make test-integration ENV=${{ env.RUN_ENVIRONMENT }}"
quality:
name: Quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: "Install PHP"
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
coverage: "none"
php-version: "${{ env.DEFAULT_PHP_VERSION }}"
extensions: 'inotify, pcntl'
- name: "Get Composer cache directory"
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- name: "Cache Composer dependencies"
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: php-${{ env.DEFAULT_PHP_VERSION }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: php-${{ env.DEFAULT_PHP_VERSION }}-composer-
- name: "Install dependencies with Composer"
run: composer install --no-interaction --no-progress --prefer-dist
- name: "Check for normalized composer.json"
run: "composer normalize --dry-run"
- name: "CGL"
run: "make code-style ENV=${{ env.RUN_ENVIRONMENT }}"
- name: "PHPSTAN"
run: "make phpstan ENV=${{ env.RUN_ENVIRONMENT }}"
- name: "Lint guides.xml configurations"
run: "make test-xml ENV=${{ env.RUN_ENVIRONMENT }}"
- name: "'Documentation' renders without warning'"
run: "make test-docs ENV=${{ env.RUN_ENVIRONMENT }}"
- name: "'Documentation-rendertest' renders without warning'"
run: "make test-rendertest ENV=${{ env.RUN_ENVIRONMENT }}"
theme-js-tests:
name: "typo3-docs-theme JS tests"
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/typo3-docs-theme
steps:
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: "Install Node"
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: packages/typo3-docs-theme/.nvmrc
cache: npm
cache-dependency-path: packages/typo3-docs-theme/package-lock.json
- name: "Install npm dependencies"
run: npm ci --no-progress
- name: "Run JS unit tests"
run: npm test
monorepo-validate:
name: "Validate monorepo structure"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: "Install PHP"
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
coverage: "none"
php-version: "${{ env.DEFAULT_PHP_VERSION }}"
extensions: 'inotify, pcntl'
- name: "Get Composer cache directory"
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- name: "Cache Composer dependencies"
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: php-${{ env.DEFAULT_PHP_VERSION }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: php-${{ env.DEFAULT_PHP_VERSION }}-composer-
- name: "Install dependencies with Composer"
run: composer install --no-interaction --no-progress --prefer-dist
- name: "Validate monorepo"
run: "make test-monorepo ENV=${{ env.RUN_ENVIRONMENT }}"