Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add pipeline #3

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: pipeline
on: pull_request

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
coverage: none

- name: Install Composer
uses: ramsey/composer-install@v3

- name: Composer Validation
run: composer validate --strict

- name: Install PHP Dependencies
run: composer install --no-scripts

- name: Lint PHP
run: php -l src/**/*.php

- name: Lint Templates
run: bin/console lint:twig templates

- name: Lint Config
run: bin/console lint:yaml config

- name: Lint Container
run: bin/console lint:container

- name: Code Style PHP
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run

- name: PHPStan
run: vendor/bin/phpstan analyse

- name: Tests
run: vendor/bin/phpunit
Loading