Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved phpunit to phars #9

Merged
merged 3 commits into from
Dec 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
with:
path: |
~/.composer/cache
tools
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
Expand All @@ -57,7 +58,7 @@ jobs:
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Install tools"
run: "phive install --trust-gpg-keys E82B2FB314E9906E,C5095986493B4AA0,CF1A108D0E7AE720,8A03EA3B385DBAA1 --force-accept-unsigned"
run: "phive install --trust-gpg-keys E82B2FB314E9906E,C5095986493B4AA0,CF1A108D0E7AE720,8A03EA3B385DBAA1,4AA394086372C20A --force-accept-unsigned"

- name: "Mutation Tests"
run: "composer test:mutation"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/static-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
with:
path: |
~/.composer/cache
tools
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
Expand All @@ -57,7 +58,7 @@ jobs:
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Install tools"
run: "phive install --trust-gpg-keys E82B2FB314E9906E,C5095986493B4AA0,CF1A108D0E7AE720,8A03EA3B385DBAA1 --force-accept-unsigned"
run: "phive install --trust-gpg-keys E82B2FB314E9906E,C5095986493B4AA0,CF1A108D0E7AE720,8A03EA3B385DBAA1,4AA394086372C20A --force-accept-unsigned"

- name: "Static Analyze"
run: "composer static:analyze"
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
- "8.0"
operating-system:
- "ubuntu-latest"
- "windows-latest"

steps:
- name: "Checkout"
Expand All @@ -35,7 +34,7 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
coverage: pcov
tools: composer:v2
tools: phive, composer:v2
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

Expand All @@ -44,6 +43,7 @@ jobs:
with:
path: |
~/.composer/cache
tools
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
Expand All @@ -60,5 +60,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,4AA394086372C20A --force-accept-unsigned"

- name: "Test"
run: "composer test"
1 change: 1 addition & 0 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
<phar name="infection" version="^0.17.3" installed="0.17.3" location="./tools/infection" copy="true"/>
<phar name="phpstan" version="^0.12.40" installed="0.12.40" location="./tools/phpstan" copy="true"/>
<phar name="psalm" version="^3.12.1" installed="3.14.2" location="./tools/psalm" copy="true"/>
<phar name="phpunit" version="^9.5.0" installed="9.5.0" location="./tools/phpunit.phar" copy="true"/>
</phive>
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"symfony/polyfill-mbstring": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.4",
"symfony/cache": "^5.1"
},
"config": {
Expand All @@ -40,7 +39,7 @@
"@test:mutation"
],
"test": [
"phpunit"
"tools/phpunit.phar"
],
"test:mutation": [
"tools/infection -j2"
Expand Down
Loading