Skip to content

Pipeline run by kisscool-fr #19

Pipeline run by kisscool-fr

Pipeline run by kisscool-fr #19

Workflow file for this run

name: php-build-pipeline
run-name: Pipeline ${{ github.run.id }} run by ${{ github.actor }}
on:
push:
branches: [ 'master', '2.0', '1.0' ]
permissions:
contents: read
jobs:
pre-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1.20'
- name: Validate composer.json and composer.lock
run: composer check
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction
check:
needs: [ 'pre-check' ]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1.20'
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: PHPStan
run: composer stan
- name: PHP-CS-Fixer
run: composer style
test:
needs: ['pre-check', check]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1.20'
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: PHPUnit
run: composer test