Skip to content

Commit ab3182a

Browse files
authored
feat: create ci.yml
1 parent 60cb0a7 commit ab3182a

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.1', '8.2', '8.3']
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v3
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)