Skip to content

Commit 1fd2e26

Browse files
authored
Create ci.yml
1 parent 355714d commit 1fd2e26

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "*.x"
7+
pull_request:
8+
9+
jobs:
10+
tests:
11+
name: PHP ${{ matrix.php }} Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
php: ['8.1', '8.2']
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
tools: composer:v2
26+
coverage: none
27+
28+
- name: Install dependencies
29+
run: composer update --prefer-dist --no-interaction --no-progress
30+
31+
- name: Execute tests
32+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)