Skip to content

Commit

Permalink
improve ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed Apr 24, 2024
1 parent 151ab96 commit 83af6c7
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,35 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
laravel: [8, 9]
laravel: [11]

steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
coverage: none
- name: Start docker containers
run: docker-compose up -d
- name: Install composer dependencies
run: composer require "illuminate/support:^${{ matrix.laravel }}.0"
- name: Run tests
run: vendor/bin/pest
run: vendor/bin/pest --colors=always

phpstan:
name: Static analysis (PHPStan)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
coverage: none
- name: Install composer dependencies
run: composer install
- name: Run phpstan
Expand All @@ -43,6 +55,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
coverage: none
- name: Install php-cs-fixer
run: composer global require friendsofphp/php-cs-fixer
- name: Run php-cs-fixer
Expand Down

0 comments on commit 83af6c7

Please sign in to comment.