Skip to content

Commit ed73ec8

Browse files
committed
workflow?
1 parent 2eddc99 commit ed73ec8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
os: [ubuntu-latest]
12+
php: [8.1, 8.2, 8.3]
13+
14+
name: P${{ matrix.php }} - ${{ matrix.os }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v5
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: |
29+
composer install --prefer-dist --no-interaction
30+
31+
- name: Execute phpstan
32+
run: vendor/bin/phpstan analyse
33+
34+
- name: Execute phpunit
35+
run: vendor/bin/phpunit
36+

0 commit comments

Comments
 (0)