-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
48 changed files
with
1,667 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Playground tests | ||
name: 'Tests: Playground' | ||
|
||
on: | ||
push: | ||
|
@@ -19,23 +19,30 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: php-actions/composer@v6 | ||
# - uses: php-actions/composer@v6 | ||
- name: Run php-actions/composer@v6 | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: "8.2" | ||
php_extensions: intl | ||
version: 2.x | ||
- uses: php-actions/phpunit@v3 | ||
env: | ||
XDEBUG_MODE: coverage | ||
with: | ||
php_extensions: xdebug | ||
coverage_clover: clover.xml | ||
coverage_text: true | ||
- name: Make code coverage badge | ||
uses: timkrase/[email protected] | ||
with: | ||
coverage_badge_path: output/coverage.svg | ||
push_badge: false | ||
- name: Git push to image-data branch | ||
- name: Git push to testing/develop branch | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
publish_dir: ./output | ||
publish_branch: image-data | ||
publish_branch: testing/develop | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
user_name: 'github-actions[bot]' | ||
user_email: 'github-actions[bot]@users.noreply.github.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
stopOnSkipped="false" | ||
backupGlobals="false" | ||
beStrictAboutTestsThatDoNotTestAnything="true" | ||
beStrictAboutOutputDuringTests="true" | ||
cacheResult="false" | ||
failOnRisky="true" | ||
failOnWarning="true" | ||
processIsolation="false" | ||
stopOnError="true" | ||
stopOnFailure="true" | ||
cacheDirectory=".phpunit.cache" | ||
backupStaticProperties="false" | ||
displayDetailsOnIncompleteTests="true" | ||
displayDetailsOnSkippedTests="true" | ||
displayDetailsOnTestsThatTriggerDeprecations="true" | ||
displayDetailsOnTestsThatTriggerErrors="true" | ||
displayDetailsOnTestsThatTriggerNotices="true" | ||
displayDetailsOnTestsThatTriggerWarnings="true" | ||
testdox="true"> | ||
<testsuites> | ||
<testsuite name="Unit"> | ||
<directory>tests/Unit</directory> | ||
</testsuite> | ||
<testsuite name="Feature"> | ||
<directory>tests/Feature</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage | ||
includeUncoveredFiles="true" | ||
pathCoverage="false" | ||
ignoreDeprecatedCodeUnits="true" | ||
disableCodeCoverageIgnore="true"> | ||
<report> | ||
<clover outputFile="tests/logs/clover.xml"/> | ||
<cobertura outputFile="tests/logs/cobertura.xml"/> | ||
<crap4j outputFile="tests/logs/crap4j.xml" threshold="50"/> | ||
<html outputDirectory="tests/logs/html" lowUpperBound="50" highLowerBound="90"/> | ||
<php outputFile="tests/logs/coverage.php"/> | ||
<text outputFile="tests/logs/coverage.txt" showUncoveredFiles="false" showOnlySummary="true"/> | ||
<xml outputDirectory="tests/logs/xml"/> | ||
</report> | ||
</coverage> | ||
<logging> | ||
<junit outputFile="tests/logs/junit.xml"/> | ||
<teamcity outputFile="tests/logs/teamcity.txt"/> | ||
<testdoxHtml outputFile="tests/logs/testdox.html"/> | ||
<testdoxText outputFile="tests/logs/testdox.txt"/> | ||
</logging> | ||
<source> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</source> | ||
<php> | ||
<env name="APP_DEBUG" value="false"/> | ||
<env name="APP_ENV" value="testing"/> | ||
<env name="APP_KEY" value="base64:lNTGdmOOxP5uNUVuCj9FB//Ssn8JmRXBdtPEE4/QReE="/> | ||
<env name="BCRYPT_ROUNDS" value="4"/> | ||
<env name="CACHE_DRIVER" value="array"/> | ||
<env name="LOG_CHANNEL" value="stderr"/> | ||
<env name="DB_CONNECTION" value="sqlite"/> | ||
<env name="DB_DATABASE" value=":memory:"/> | ||
<env name="TEST_DB_MIGRATIONS" value="true"/> | ||
<env name="MAIL_MAILER" value="log"/> | ||
<env name="QUEUE_CONNECTION" value="sync"/> | ||
<env name="SESSION_DRIVER" value="array"/> | ||
<env name="TELESCOPE_ENABLED" value="false"/> | ||
<ini name="memory_limit" value="512M" /> | ||
</php> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.