Skip to content

PHPunit

PHPunit #1267

Workflow file for this run

name: PHPunit
on:
push:
branches:
- main
pull_request: null
schedule:
- cron: "30 1 * * *"
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
name: PHPunit - PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Composer update
run: composer update --no-progress --no-interaction
- name: PHPunit
run: vendor/bin/phpunit --coverage-text
- name: Debugging artifacts
uses: actions/upload-artifact@v3
if: failure()
with:
name: compiled-templates-php${{ matrix.php }}
path: |
tmp/phpstan-latte