Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 3114cf2

Browse files
authored
feat: create ci.yml
1 parent c016bba commit 3114cf2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)