33 lines
884 B
YAML
33 lines
884 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
|
|
jobs:
|
|
console-contracts:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ConsoleContracts
|
|
strategy:
|
|
matrix:
|
|
php: ['8.2', '8.3']
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
coverage: none
|
|
tools: phpstan, php-cs-fixer, phpunit
|
|
- name: Validate composer.json
|
|
run: php -v && composer validate --strict
|
|
- name: Install dependencies
|
|
run: composer install --no-interaction --no-progress --prefer-dist
|
|
- name: PHPUnit
|
|
run: vendor/bin/phpunit --configuration phpunit.xml --display-deprecations
|
|
- name: PHPStan
|
|
run: vendor/bin/phpstan analyse --no-progress --memory-limit=512M
|