Skip to content

Commit db7cc41

Browse files
authored
feat: create CI
1 parent d04a0f7 commit db7cc41

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)