Laravel 9.x Shift #124
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: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.1] | |
name: PHP:${{ matrix.php }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP, with composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
coverage: none | |
- name: Copy .env file | |
run: cp .env.example .env | |
- name: Install Composer dependencies | |
run: composer install --no-interaction --no-progress --prefer-dist | |
- name: Generate application key | |
run: php artisan key:generate | |
- name: Run Unit tests | |
run: | | |
vendor/bin/phpunit | |