Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chaz6chez committed Dec 13, 2024
1 parent c7352fb commit 66ea951
Show file tree
Hide file tree
Showing 6 changed files with 702 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
PHPUnit:
name: PHPUnit (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
matrix:
php:
- "8.4"
- "8.3"
- "8.2"
- "8.1"
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: phpunit:10, 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 }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/vendor/
/coverage
.idea
composer.lock
41 changes: 41 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "workbunny/cron-parser",
"type": "library",
"keywords": [
"cron",
"crontab",
"parser"
],
"license": "MIT",
"authors": [
{
"name": "chaz6chez",
"email": "[email protected]"
}
],
"support": {
"email": "[email protected]",
"issues": "https://github.com/workbunny/cron-parser/issues",
"wiki": "https://github.com/workbunny/cron-parser/wiki",
"source": "https://github.com/workbunny/cron-parser"
},
"require": {
"php": ">=8.1"
},
"require-dev": {
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
"Workbunny\\CronParser\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
}
},
"scripts": {
"unit-test": "./vendor/bin/phpunit --coverage-html coverage"
}
}
29 changes: 29 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
executionOrder="depends,defects"
requireCoverageMetadata="true"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
displayDetailsOnPhpunitDeprecations="true"
failOnPhpunitDeprecation="true"
failOnRisky="true"
colors="true"
testdox="true"
cacheResult="false"
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
<coverage includeUncoveredFiles="false">
</coverage>

</phpunit>
Loading

0 comments on commit 66ea951

Please sign in to comment.