Package installation tests #16
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: Package installation tests | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 1 * * *" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
laravel: | |
- "^9.0" | |
- "^10.0" | |
name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }} | |
steps: | |
- name: Setup PHP, with composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
coverage: none | |
- run: composer create-project laravel/laravel:${{ matrix.laravel }} ./ | |
# TODO After the dependency issues written in the README are resolved, modify to the normal installation method. | |
- run: composer require kentaroutakeda/laravel-openapi-validator --no-interaction --no-progress --with-dependencies --ansi | |
- run: vendor/bin/phpunit |