fixup unittesting #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and tests | |
on: | |
push: | |
branches: | |
- 'master' | |
- '[1-9].[0-9]' | |
tags: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
cancel: | |
name: Cancel previous workflow runs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancelling | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
run-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: [ '7.4', '8.0', '8.1' ] | |
needs: cancel | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Install composer dependencies | |
run: composer install --no-interaction --optimize-autoloader | |
- name: Run Unit tests | |
run: vendor/bin/phpunit |