Skip to content

Commit

Permalink
Removed tools from repository, updated phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Aug 12, 2020
1 parent 10ffe48 commit ba41937
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 25 deletions.
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.php_cs export-ignore
/tools export-ignore
/tools/* binary
/.phive export-ignore
/psalm.xml export-ignore
/phpstan.neon export-ignore
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
coverage: pcov
tools: phive, composer:v2
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

Expand All @@ -55,6 +56,9 @@ jobs:
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Install tools"
run: "phive install --trust-gpg-keys E82B2FB314E9906E,C5095986493B4AA0,CF1A108D0E7AE720,8A03EA3B385DBAA1"

- name: "Mutation Tests"
run: "composer test:mutation"
env:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/static-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
coverage: pcov
tools: phive, composer:v2
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

Expand All @@ -55,5 +56,8 @@ jobs:
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Install tools"
run: "phive install --trust-gpg-keys E82B2FB314E9906E,C5095986493B4AA0,CF1A108D0E7AE720,8A03EA3B385DBAA1"

- name: "Static Analyze"
run: "composer static:analyze"
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
coverage: pcov
tools: composer:v2
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor
tools
*.cache
var
96 changes: 84 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/schema/9.3.xsd"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/schema/9.2.xsd"
colors="true"
bootstrap="vendor/autoload.php"
cacheResultFile="var/phpunit/.result.cache"
>
<coverage>
<report>
<html outputDirectory="var/phpunit/coverage/html" lowUpperBound="95" highLowerBound="100" />
</report>
<include>
<logging>
<log type="coverage-html" target="var/phpunit/coverage/html" lowUpperBound="95" highLowerBound="100"/>
</logging>
<filter>
<whitelist>
<directory suffix=".php">src</directory>
</include>
</coverage>
</whitelist>
</filter>

<testsuites>
<testsuite name="unit">
Expand Down
Binary file removed tools/infection
Binary file not shown.
Binary file removed tools/php-cs-fixer
Binary file not shown.
Binary file removed tools/phpstan
Binary file not shown.
Binary file removed tools/psalm
Binary file not shown.

0 comments on commit ba41937

Please sign in to comment.