Skip to content

Dbg Windows CS fixer #5

Dbg Windows CS fixer

Dbg Windows CS fixer #5

Workflow file for this run

name: Siglot CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest']
php-versions: ['8.1', '8.2', '8.3']
steps:
- name: Check out sources
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer, php-cs-fixer, phpstan, phpunit
- name: Validate composer.json and composer.lock
run: composer validate --strict
- 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
- name: Code Style
run: composer siglot:cs-fixer
- name: Static Analysis
run: composer siglot:phpstan
- name: Unit Tests
run: composer siglot:phpunit