Skip to content

build(Dockerfile): use php:8.3.9-fpm-alpine #41

build(Dockerfile): use php:8.3.9-fpm-alpine

build(Dockerfile): use php:8.3.9-fpm-alpine #41

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
tests:
runs-on: ${{ matrix.os }}
env:
ENV: DEVELOPMENT
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: ['8.3']
dependency_version: [prefer-dist, prefer-source]
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency_version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP & Enable Extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ runner.php }}
extensions: uopz
coverage: pcov
- name: Validate composer.json and composer.lock
run: composer validate --working-dir=./src --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: ./src/vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install PHP dependencies
run: composer install --working-dir=./src --${{ matrix.dependency_version }} --no-interaction --no-progress --ansi
- name: Check Coding Standards
run: ./src/vendor/bin/phpcs --standard=./src/phpcs.xml ./src/app ./src/tests
- name: Check with PHPStan
run: ./src/vendor/bin/phpstan analyse --configuration=./src/phpstan.neon ./src/app ./src/tests
- name: Check Test Cases
run: ./src/vendor/bin/phpunit --configuration=./src/phpunit.xml