-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Api 734 setup a GitHub actions (#189)
- Loading branch information
1 parent
aa33d38
commit f30fd10
Showing
5 changed files
with
65 additions
and
69 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
name: PHPMD | ||
|
||
on: [push, pull_request] | ||
on: | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
|
||
jobs: | ||
phpmd: | ||
name: PHPMD | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP environment | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
tools: phpmd | ||
- name: Run PHPMD | ||
run: phpmd . github ruleset.xml --exclude 'Tests/*,vendor/*' | ||
phpmd: | ||
name: PHPMD | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP environment | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
tools: phpmd | ||
- name: Run PHPMD | ||
run: phpmd . github ruleset.xml --exclude 'Tests/*,vendor/*' |
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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
<?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"> | ||
<testsuites> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true"> | ||
<testsuites> | ||
<testsuite name="Unit"> | ||
<directory>./Tests</directory> | ||
<directory>./Tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage ignoreDeprecatedCodeUnits="true" pathCoverage="true"> | ||
<!-- <report>--> | ||
<!-- <html outputDirectory="html_coverage"/>--> | ||
<!-- </report>--> | ||
</coverage> | ||
<php> | ||
</testsuites> | ||
<coverage ignoreDeprecatedCodeUnits="true" pathCoverage="true"/> | ||
<php> | ||
<env name="DB_CONNECTION" value="testing"/> | ||
</php> | ||
</php> | ||
<source> | ||
<include> | ||
<directory suffix=".php">./</directory> | ||
</include> | ||
<exclude> | ||
<directory suffix=".php">./Tests</directory> | ||
<directory suffix=".php">./vendor</directory> | ||
</exclude> | ||
</source> | ||
</phpunit> |