Skip to content

feature toggle bundle (#236) #696

feature toggle bundle (#236)

feature toggle bundle (#236) #696

Workflow file for this run

name: Unit Tests
on:
push:
branches: [main]
paths:
- '.github/workflows/unit-tests.yml'
- 'src/**'
- 'composer.json'
- 'phpunit.xml.dist'
pull_request:
branches: [main]
paths:
- '.github/workflows/unit-tests.yml'
- 'src/**'
- 'composer.json'
- 'phpunit.xml.dist'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: PHPUnit
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3']
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
extensions: apcu
- name: Cache Composer Packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php-version }}-
- run: make composer.lock test