Skip to content

Commit 8b1229b

Browse files
committed
add workflow
1 parent 29cb907 commit 8b1229b

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 4
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Compat Tests
2+
3+
on:
4+
pull_request: null
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
compat_tests:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
actions:
15+
-
16+
name: 'Along PHPUnit 9'
17+
run: composer require "phpunit/phpunit:9.*"
18+
-
19+
name: 'Along PHPUnit 10'
20+
run: composer require "phpunit/phpunit:10.*"
21+
-
22+
name: 'Along PHPUnit 11'
23+
run: composer require "phpunit/phpunit:11.*"
24+
-
25+
name: 'Along PHPUnit 12'
26+
run: composer require "phpunit/phpunit:12.*"
27+
28+
name: ${{ matrix.actions.name }}
29+
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
-
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: 8.2
39+
coverage: none
40+
41+
- uses: "ramsey/composer-install@v2"
42+
43+
- run: ${{ matrix.actions.run }}
44+
45+
# run all tests
46+
- run: vendor/bin/phpunit

0 commit comments

Comments
 (0)