Skip to content

Commit 9601478

Browse files
authoredDec 10, 2024
ci: add pipeline (#3)
1 parent 2cef2a8 commit 9601478

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
 

‎.github/workflows/pipeline.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: pipeline
2+
on: pull_request
3+
4+
jobs:
5+
tests:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v4
10+
11+
- name: Setup PHP
12+
uses: shivammathur/setup-php@v2
13+
with:
14+
php-version: 8.4
15+
coverage: none
16+
17+
- name: Install Composer
18+
uses: ramsey/composer-install@v3
19+
20+
- name: Composer Validation
21+
run: composer validate --strict
22+
23+
- name: Install PHP Dependencies
24+
run: composer install --no-scripts
25+
26+
- name: Lint PHP
27+
run: php -l src/**/*.php
28+
29+
- name: Lint Templates
30+
run: bin/console lint:twig templates
31+
32+
- name: Lint Config
33+
run: bin/console lint:yaml config
34+
35+
- name: Lint Container
36+
run: bin/console lint:container
37+
38+
- name: Code Style PHP
39+
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run
40+
41+
- name: PHPStan
42+
run: vendor/bin/phpstan analyse
43+
44+
- name: Tests
45+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)
Please sign in to comment.