Skip to content

[DEP]: Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 (#399) #1406

[DEP]: Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 (#399)

[DEP]: Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 (#399) #1406

Workflow file for this run

name: CI
on:
push:
branches:
- master
- develop
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-php:
name: Build ${{ matrix.php }} / ${{ matrix.symfony }}
runs-on: ubuntu-latest
strategy:
max-parallel: 4
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1']
symfony: ['^4.4', '^5.4', '^6.0']
exclude:
- symfony: '^6.0'
php: '7.4'
include:
- symfony: '^4.4'
deprecations: 'max[self]=0'
- symfony: '^5.4'
deprecations: ''
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, xml, ctype, iconv
coverage: none
- name: Setup Composer cache
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Recover Composer caches
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock', '**/composer.json') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies (Composer)
run: |
sed -ri 's/"symfony\/dependency-injection": "(.+)"/"symfony\/dependency-injection": "'${{ matrix.symfony }}'"/' composer.json;
sed -ri 's/"symfony\/form": "(.+)"/"symfony\/form": "'${{ matrix.symfony }}'"/' composer.json;
sed -ri 's/"symfony\/framework-bundle": "(.+)"/"symfony\/framework-bundle": "'${{ matrix.symfony }}'"/' composer.json;
sed -ri 's/"symfony\/http-kernel": "(.+)"/"symfony\/http-kernel": "'${{ matrix.symfony }}'"/' composer.json;
sed -ri 's/"symfony\/security-bundle": "(.+)"/"symfony\/security-bundle": "'${{ matrix.symfony }}'"/' composer.json;
sed -ri 's/"symfony\/translation": "(.+)"/"symfony\/translation": "'${{ matrix.symfony }}'"/' composer.json;
sed -ri 's/"symfony\/twig-bundle": "(.+)"/"symfony\/twig-bundle": "'${{ matrix.symfony }}'"/' composer.json;
sed -ri 's/"symfony\/phpunit-bridge": "(.+)"/"symfony\/phpunit-bridge": "'${{ matrix.symfony }}'"/' composer.json;
composer update --prefer-dist --no-progress
composer info
git checkout composer.json
- name: Lint
run: composer t3g:test:php:lint
- name: CGL
run: composer t3g:cgl
- name: Unit Tests
run: composer t3g:test:php:unit
- name: Git Status
run: |
git status
git status | grep -q "nothing to commit, working tree clean"
build-frontend:
name: Build Frontend
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup npm cache
id: npm-cache-dir
shell: bash
run: |
echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- name: Recover npm caches
uses: actions/cache@v4
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies (npm)
run: npm ci
- name: Build frontend artifacts
run: npm run build
- name: Stylelint
run: npm run stylelint
- name: Git Status
run: |
git status
git status | grep -q "nothing to commit, working tree clean"