Skip to content

Add built-in attributes #90

Add built-in attributes

Add built-in attributes #90

Workflow file for this run

name: Test
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
laravel:
- 9
- 10
- 11
exclude:
- php: '8.1'
laravel: 11
name: PHP ${{ matrix.php }} + Laravel ${{ matrix.laravel }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php }}
run: sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
- name: Update Composer to latest version
run: sudo composer self-update
- name: Validate composer.json
run: composer validate
- name: Install Composer dependencies
run: |
composer install --no-interaction
if [[ "${{ matrix.laravel }}" == 9 ]]; then
composer update --no-interaction --with-all-dependencies orchestra/testbench:^7.0 symfony/console:^6.0
elif [[ "${{ matrix.laravel }}" == 10 ]]; then
composer update --no-interaction --with-all-dependencies orchestra/testbench:^8.0 symfony/console:^6.0
elif [[ "${{ matrix.laravel }}" == 11 ]]; then
composer update --no-interaction --with-all-dependencies orchestra/testbench:^9.0 symfony/console:^7.0
fi
- name: Install npm dependencies
run: npm install
- name: Run tests
run: |
if [[ "${{ matrix.php }}" == '8.1' && "${{ matrix.laravel }}" == 10 ]]; then
composer test-coverage
else
composer test
fi
- name: Upload coverage results to Coveralls
if: matrix.php == '8.1' && matrix.laravel == 10
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
command: vendor-bin/php-coveralls/vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml