mirror of
https://github.com/archtechx/template.git
synced 2025-12-12 05:14:04 +00:00
improve ci.yml
This commit is contained in:
parent
151ab96e98
commit
83af6c703c
1 changed files with 20 additions and 2 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
|
@ -16,16 +16,22 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
laravel: [8, 9]
|
laravel: [11]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- name: Start docker containers
|
||||||
run: docker-compose up -d
|
run: docker-compose up -d
|
||||||
- name: Install composer dependencies
|
- name: Install composer dependencies
|
||||||
run: composer require "illuminate/support:^${{ matrix.laravel }}.0"
|
run: composer require "illuminate/support:^${{ matrix.laravel }}.0"
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: vendor/bin/pest
|
run: vendor/bin/pest --colors=always
|
||||||
|
|
||||||
phpstan:
|
phpstan:
|
||||||
name: Static analysis (PHPStan)
|
name: Static analysis (PHPStan)
|
||||||
|
|
@ -33,6 +39,12 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- name: Install composer dependencies
|
||||||
run: composer install
|
run: composer install
|
||||||
- name: Run phpstan
|
- name: Run phpstan
|
||||||
|
|
@ -43,6 +55,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- name: Install php-cs-fixer
|
||||||
run: composer global require friendsofphp/php-cs-fixer
|
run: composer global require friendsofphp/php-cs-fixer
|
||||||
- name: Run php-cs-fixer
|
- name: Run php-cs-fixer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue