Skip to content

Commit 5324ba6

Browse files
committed
added phpunit github action
1 parent d843f71 commit 5324ba6

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Static analysis
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
10+
phpstan:
11+
name: PHPStan
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 10
14+
15+
strategy:
16+
matrix:
17+
php-version: ['8.0', '8.1', '8.2']
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Setup PHP
23+
id: setup-php
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php-version }}
27+
coverage: none
28+
29+
- uses: "ramsey/composer-install@v2"
30+
with:
31+
composer-options: "--prefer-dist --no-progress --no-suggest"
32+
33+
- run: composer require redaxo/source
34+
35+
- run: composer test

0 commit comments

Comments
 (0)