Skip to content

Commit 583c1db

Browse files
committed
ci: add pipeline
1 parent 2cef2a8 commit 583c1db

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/pipeline.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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: Code Style PHP
27+
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run
28+
29+
- name: PHPStan
30+
run: vendor/bin/phpstan analyse
31+
32+
- name: Tests
33+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)