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: Run Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
package-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ["8.3","8.2","8.1"] | |
dependency-stability: ["prefer-stable"] | |
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install PHP versions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Install Dependencies | |
if: steps.vendor-cache.outputs.cache-hit != 'true' | |
run: composer update -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Update Dependencies with latest stable | |
if: matrix.dependency-stability == 'prefer-stable' | |
run: composer update --prefer-stable | |
- name: Update Dependencies with lowest stable | |
if: matrix.dependency-stability == 'prefer-lowest' | |
run: composer update --prefer-stable --prefer-lowest | |
- name: Show dir | |
run: pwd | |
- name: PHP Version | |
run: php --version | |
- name: Execute static analysis tests | |
if: matrix.php-versions == '8.2' | |
run: composer test-static | |
# Code quality | |
- name: Execute tests (Unit and Feature tests) via PHPUnit | |
# Set environment | |
env: | |
SESSION_DRIVER: array | |
run: composer test |