Skip to content

Commit 68bb678

Browse files
committed
Setup CI
1 parent 738576a commit 68bb678

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,19 @@ jobs:
1818
uses: shivammathur/setup-php@v2
1919
with:
2020
php-version: ${{ matrix.php }}
21-
tools: phpcs, phpstan, phpunit
21+
tools: phpcs, phpstan
2222

2323
- name: Validate composer.json
2424
run: composer validate
2525

26-
- name: Check code style
27-
run: phpcs
26+
- name: Install dependencies
27+
run: composer install
28+
29+
- name: Code style
30+
run: phpcs src/ tests/
2831

2932
- name: Static analysis
30-
run: phpstan
33+
run: phpstan analyze src/ tests/
3134

32-
- name: Run test suite
33-
run: phpunit
35+
- name: Run tests
36+
run: ./vendor/bin/phpunit tests/

0 commit comments

Comments
 (0)