Skip to content

Update github actions #45

Update github actions

Update github actions #45

Workflow file for this run

---
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run-tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
versions: [
{ php: "7.3", phpunit: "9" },
{ php: "7.4", phpunit: "9" },
{ php: "8.0", phpunit: "9" },
{ php: "8.1", phpunit: "10" },
]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Composer install
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.versions.php }}
- name: Run unit tests
uses: php-actions/[email protected]
with:
configuration: phpunit.xml
version: ${{ matrix.versions.phpunit }}
php_version: ${{ matrix.versions.php }}
check-code-style:
name: Check code style
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Run php-cs-fixer
uses: docker://oskarstark/php-cs-fixer-ga
- name: Apply php-cs-fixer changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply php-cs-fixer changes