Skip to content

[TASK] Run tests nightly #8742

[TASK] Run tests nightly

[TASK] Run tests nightly #8742

Workflow file for this run

name: tests

Check failure on line 1 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

(Line: 12, Col: 9): Unexpected symbol: 'matches'. Located at position 157 within expression: github.event_name != 'schedule' || ( github.repository == 'TYPO3-Documentation/TYPO3CMS-Reference-CoreApi' && (github.ref_name == 'main' || github.ref_name matches '^[0-9]+\\.[0-9]+$') ), (Line: 33, Col: 9): Unexpected symbol: 'matches'. Located at position 157 within expression: github.event_name != 'schedule' || ( github.repository == 'TYPO3-Documentation/TYPO3CMS-Reference-CoreApi' && (github.ref_name == 'main' || github.ref_name matches '^[0-9]+\\.[0-9]+$') )
on:
push:
pull_request:
schedule:
- cron: "0 3 * * *" # every day at 03:00 UTC
jobs:
lint:
# Run always on push/PR, but only run on schedule in the main repo for feature branches
if: github.event_name != 'schedule' || (
github.repository == 'TYPO3-Documentation/TYPO3CMS-Reference-CoreApi' &&
(github.ref_name == 'main' || github.ref_name matches '^[0-9]+\\.[0-9]+$')
)
name: Linting
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '8.2'
- '8.3'
- '8.4'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint PHP
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint
quality:
# Run always on push/PR, but only run on schedule in the main repo for feature branches
if: github.event_name != 'schedule' || (
github.repository == 'TYPO3-Documentation/TYPO3CMS-Reference-CoreApi' &&
(github.ref_name == 'main' || github.ref_name matches '^[0-9]+\\.[0-9]+$')
)
name: Quality
runs-on: ubuntu-latest
env:
php: '8.2'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install testing system
run: Build/Scripts/runTests.sh -p ${{ env.php }} -s composerUpdate
- name: Composer validate
run: Build/Scripts/runTests.sh -p ${{ env.php }} -s composerValidate
- name: Composer normalize
run: Build/Scripts/runTests.sh -p ${{ env.php }} -s composerNormalize -n
- name: CGL
run: Build/Scripts/runTests.sh -n -p ${{ env.php }} -s cgl -n
- name: Check Rst
run: Build/Scripts/runTests.sh -p ${{ env.php }} -s checkRst
- name: Lint YAML
run: Build/Scripts/runTests.sh -p ${{ env.php }} -s yamlLint