Skip to content

Feature/acp 3507/acp 3746 persist webhooks and allow to run them later #31

Feature/acp 3507/acp 3746 persist webhooks and allow to run them later

Feature/acp 3507/acp 3746 persist webhooks and allow to run them later #31

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
- feature/[a-z]+-[0-9]+/dev-*
workflow_dispatch:
jobs:
validation:
name: "CS, ArchSniffer, PHPStan, Security"
runs-on: ubuntu-latest
env:
APPLICATION_ENV: testing
strategy:
fail-fast: false
matrix:
php-version: [
'8.2',
]
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, pdo_mysql, redis
tools: composer:v2
- name: Composer get cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Composer cache
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer validate
run: composer validate
- name: Composer version
run: composer --version
- name: Composer install
run: composer install --optimize-autoloader
- name: Setup Database
run: |
mkdir -p tests/_data
touch tests/_data/app_webhook_db
- name: Setup AppWebhook
run: composer setup
- name: Run PHPStan
run: composer stan
- name: Run Rector checks
run: composer rector-ci
- name: Run CodeStyle checks
run: composer cs-check
- name: Codecept tests with coverage
run: composer test-cover