[TASK] Update CI #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build-php: | |
name: Build PHP | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
typo3: ['^12', '^13', '13.4.x-dev'] | |
php: ['8.2', '8.3'] | |
include: | |
- typo3: '^12' | |
php: '8.1' | |
steps: | |
- id: checkout | |
name: Checkout Code | |
uses: actions/checkout@v4 | |
- id: setup_php | |
name: Set up PHP ${{ matrix.php }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
- name: Composer Cache Vars | |
id: composer-cache-vars | |
run: | | |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
echo "timestamp=$(date +"%s")" >> $GITHUB_OUTPUT | |
- name: Cache Composer dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composer-cache-vars.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.typo3 }}-${{ steps.composer-cache-vars.outputs.timestamp }} | |
restore-keys: | | |
${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.typo3 }}- | |
${{ runner.os }}-composer-${{ matrix.php }}- | |
${{ runner.os }}-composer- | |
- id: install | |
name: Install | |
run: | | |
composer require typo3/cms-core:${{ matrix.typo3 }} --no-progress | |
git checkout composer.json | |
- id: lint | |
name: Lint | |
if: ${{ always() && steps.install.conclusion == 'success' }} | |
run: | | |
composer test:php:lint | |
- id: cgl | |
name: CGL | |
if: ${{ always() && steps.install.conclusion == 'success' }} | |
run: | | |
composer cgl:ci | |
build-frontend: | |
name: Build Frontend | |
runs-on: ubuntu-latest | |
steps: | |
- id: checkout | |
name: Checkout Code | |
uses: actions/checkout@v4 | |
- id: setup_node | |
name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- id: install | |
name: Install | |
run: | | |
cd Build | |
npm install | |
- id: build | |
name: Build | |
run: | | |
cd Build | |
npm run build | |
- name: Status | |
run: | | |
git status | |
git status | grep -q "nothing to commit, working tree clean" |