Skip to content

Merge pull request #57 from Johannestegner/master #74

Merge pull request #57 from Johannestegner/master

Merge pull request #57 from Johannestegner/master #74

Workflow file for this run

name: PHP Composer
on:
push:
branches:
- master
# Run tests for any PRs.
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.4', '8.0', '8.1']
test-command: ['test']
name: Test PHP ${{ matrix.php-version }}
steps:
- uses: actions/checkout@v4
- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v1
- name: Validate composer.json and composer.lock
run: |
composer --version
composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: composer run-script ${{ matrix.test-command }}