Skip to content

Merge branch 'main' into docker-feature #8

Merge branch 'main' into docker-feature

Merge branch 'main' into docker-feature #8

Workflow file for this run

name: PHP CI
on:
push:
pull_request:
branches:
- main
- dev
permissions:
contents: read
jobs:
build:
name: "PHP Tests"
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '7.4' ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Validate composer.json
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
tools: composer:v2
- name: Install dependencies
run: composer --prefer-source install
- name: Run tests
run: ./vendor/bin/phpunit -v