Skip to content

Commit 3b97a83

Browse files
committed
first commit
1 parent bcb60a2 commit 3b97a83

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- '0.x'
8+
- '1.x'
9+
pull_request:
10+
11+
jobs:
12+
ci:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest]
17+
php: ['8.1', '8.2', '8.3', '8.4', '8.5']
18+
dependency-version: [prefer-lowest, prefer-stable]
19+
20+
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
21+
22+
steps:
23+
24+
- name: Checkout
25+
uses: actions/checkout@v6
26+
27+
- name: Setup PHP
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.php }}
31+
tools: composer
32+
coverage: none
33+
34+
- name: Setup Problem Matches
35+
run: |
36+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
37+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
38+
39+
- name: Install PHP dependencies
40+
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
41+
42+
- name: Unit Tests
43+
run: vendor/bin/phpunit --colors=always

0 commit comments

Comments
 (0)