Skip to content

improve test

improve test #39

Workflow file for this run

name: "Tests"
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coding-standards:
runs-on: ubuntu-24.04
strategy:
fail-fast: true
matrix:
php: [8.4]
laravel: ["^11.41", "^12.0"]
dependencies:
- "lowest"
- "highest"
name: Run Tests (PHP ${{ matrix.php }} | Laravel ${{ matrix.laravel }} | Dependencies ${{ matrix.dependencies == 'highest' && 'Highest' || 'Lowest' }})
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Install Composer dependencies
run: |
composer update --with='laravel/framework:${{ matrix.laravel }}' --prefer-dist --no-interaction --no-progress ${{ matrix.dependencies == 'lowest' && '--prefer-lowest' || '' }}
- name: Run Pint
run: composer run lint -- --test -v
- name: Run unit tests
run: composer run tests:unit -- --stop-on-failure --stop-on-error
- name: Run integration tests
run: composer run tests:integration -- --stop-on-failure --stop-on-error