Skip to content

Bump actions/checkout from 4.2.2 to 5.0.0 #2

Bump actions/checkout from 4.2.2 to 5.0.0

Bump actions/checkout from 4.2.2 to 5.0.0 #2

Workflow file for this run

name: PHPUnit
on: pull_request
permissions:
contents: read
concurrency:
group: phpunit-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ['8.1', '8.2', '8.3', '8.4']
name: PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
with:
php-version: ${{ matrix.php-versions }}
coverage: none
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up dependencies
run: composer i
- name: PHPUnit with ZSH
run: SHELL=zsh vendor/bin/phpunit
- name: PHPUnit with BASH
run: SHELL=bash vendor/bin/phpunit
summary:
permissions:
contents: none
runs-on: ubuntu-latest
needs: [phpunit]
if: always()
name: phpunit-summary
steps:
- name: Summary status
run: if ${{ needs.phpunit.result != 'success' }}; then exit 1; fi