Skip to content

feat(installer): add --symfony-docker-ref, keep the pinned default (#… #879

feat(installer): add --symfony-docker-ref, keep the pinned default (#…

feat(installer): add --symfony-docker-ref, keep the pinned default (#… #879

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request: ~
workflow_dispatch: ~
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: PHPUnit (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.3', '8.4']
steps:
- uses: actions/checkout@v7
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v6
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-
- run: composer install --no-interaction --no-progress
- run: vendor/bin/phpunit
static-analysis:
name: PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
tools: composer:v2
- run: composer install --no-interaction --no-progress
- run: vendor/bin/phpstan analyse --no-progress
phar:
name: PHAR build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
ini-values: phar.readonly=0
tools: composer:v2
- run: composer install --no-dev --no-interaction --no-progress --optimize-autoloader
- run: php -d phar.readonly=0 scripts/build-phar.php dist/api-platform.phar
- run: php dist/api-platform.phar --version
- run: php dist/api-platform.phar --help