Skip to content

Update symfony/translation requirement from ^7.1 to ^7.2 #349

Update symfony/translation requirement from ^7.1 to ^7.2

Update symfony/translation requirement from ^7.1 to ^7.2 #349

# GitHub Actions Documentation: https://docs.github.com/en/actions
name: CI
on:
push:
pull_request:
branches:
- main
env:
PHP_VERSION: 8.3
# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coding-standards:
name: Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v3
- name: Check coding standards (PHP-CS-Fixer)
run: composer lint:style
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v3
- name: Statically analyse code (PHPStan)
run: composer analyse:phpstan
- name: Statically analyse code (Psalm)
run: composer analyse:psalm
unit-tests:
name: Unit Tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
dependencies: [lowest, highest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}
- name: Run unit tests (PHPUnit)
run: composer test