Skip to content

Commit 05f8c5c

Browse files
authored
Update and rename php.yml to ci.yml
1 parent 2e17d9e commit 05f8c5c

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
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+
on:
3+
push:
4+
branches: [ "main" ]
5+
pull_request:
6+
branches: [ "main" ]
7+
8+
jobs:
9+
PHPUnit:
10+
name: PHPUnit (PHP ${{ matrix.php }})
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php:
15+
- "7.4"
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php }}
21+
tools: phpunit:9, composer:v2
22+
coverage: xdebug
23+
- run: composer install
24+
- run: vendor/bin/phpunit --coverage-clover=coverage.xml
25+
26+
- uses: codecov/codecov-action@v4
27+
with:
28+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/php.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)