Skip to content

Commit

Permalink
Update and rename php.yml to ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinywan authored Oct 12, 2024
1 parent 2e17d9e commit 05f8c5c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 20 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
PHPUnit:
name: PHPUnit (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
matrix:
php:
- "7.4"
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: phpunit:9, composer:v2
coverage: xdebug
- run: composer install
- run: vendor/bin/phpunit --coverage-clover=coverage.xml

- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
20 changes: 0 additions & 20 deletions .github/workflows/php.yml

This file was deleted.

0 comments on commit 05f8c5c

Please sign in to comment.