Skip to content

Automatically register controllers with AC v3 (#93) #183

Automatically register controllers with AC v3 (#93)

Automatically register controllers with AC v3 (#93) #183

Workflow file for this run

name: 'Continuous Integration'
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
unit-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:2
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Composer
run: composer install
- name: PHPUnit
run: ./vendor/bin/phpunit --testdox
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:2
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Composer
run: composer install
- name: Static Analysis
run: ./vendor/bin/psalm.phar --output-format=github
code-linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:2, cs2pr, phpcs
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Composer
run: composer install
- name: Code Linting
run: phpcs -q --standard=./vendor/cspray/labrador-coding-standard/ruleset.xml --exclude=Generic.Files.LineLength --report=checkstyle src test | cs2pr