generated from ergebnis/php-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
110 additions
and
4 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 |
---|---|---|
|
@@ -157,3 +157,84 @@ jobs: | |
|
||
- name: "Run Infection" | ||
run: "make infection" | ||
|
||
e2e-ubuntu: | ||
name: "End-to-End tests Ubuntu" | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
php-version: | ||
- "8.1" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
|
||
- name: "Set up PHP" | ||
uses: "shivammathur/[email protected]" | ||
with: | ||
coverage: "xdebug" | ||
php-version: "${{ matrix.php-version }}" | ||
tools: "phive" | ||
|
||
- name: "Install Composer dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
|
||
- name: "Setup the expected output" | ||
run: "mv e2e/expected-output-ubuntu e2e/expected-output" | ||
|
||
- name: "Run E2E tests" | ||
run: "make e2e" | ||
|
||
e2e-osx: | ||
name: "End-to-End tests OSX" | ||
runs-on: "macos-latest" | ||
strategy: | ||
matrix: | ||
php-version: | ||
- "8.1" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
|
||
- name: "Set up PHP" | ||
uses: "shivammathur/[email protected]" | ||
with: | ||
coverage: "xdebug" | ||
php-version: "${{ matrix.php-version }}" | ||
tools: "phive" | ||
|
||
- name: "Install Composer dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
|
||
- name: "Setup the expected output" | ||
run: "mv e2e/expected-output-osx e2e/expected-output" | ||
|
||
- name: "Run E2E tests" | ||
run: "make e2e" | ||
|
||
e2e-windows: | ||
name: "End-to-End tests Windows" | ||
runs-on: "windows-latest" | ||
strategy: | ||
matrix: | ||
php-version: | ||
- "8.1" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
|
||
- name: "Set up PHP" | ||
uses: "shivammathur/[email protected]" | ||
with: | ||
coverage: "xdebug" | ||
php-version: "${{ matrix.php-version }}" | ||
tools: "phive" | ||
|
||
- name: "Install Composer dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
|
||
- name: "Setup the expected output" | ||
run: "mv e2e/expected-output-windows e2e/expected-output" | ||
|
||
- name: "Run E2E tests" | ||
run: "make e2e" |
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,5 +1,6 @@ | ||
/.build/ | ||
/composer.lock | ||
/e2e/actual-output | ||
/e2e/expected-output | ||
/tools/ | ||
/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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CpuInfoFinder: . | ||
DummyCpuCoreFinder(value=1): . | ||
HwLogicalFinder: F | ||
HwPhysicalFinder: F | ||
LinuxyNProcessorFinder: . | ||
NProcessorFinder: F | ||
NProcFinder(all=true): . | ||
NProcFinder(all=false): . | ||
NullCpuCoreFinder: F | ||
WindowsWmicPhysicalFinder: F | ||
WindowsWmicLogicalFinder: F |
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,11 @@ | ||
CpuInfoFinder: F | ||
DummyCpuCoreFinder(value=1): . | ||
HwLogicalFinder: F | ||
HwPhysicalFinder: F | ||
LinuxyNProcessorFinder: . | ||
NProcessorFinder: F | ||
NProcFinder(all=true): F | ||
NProcFinder(all=false): F | ||
NullCpuCoreFinder: F | ||
WindowsWmicPhysicalFinder: F | ||
WindowsWmicLogicalFinder: F |
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,9 +1,9 @@ | ||
#!/bin/sh | ||
|
||
execute_finders() { | ||
php "$(pwd)/e2e/execute-finders.php" | ||
php "$(pwd)/e2e/execute-finders.php" 2>&1 | ||
} | ||
|
||
execute_finders > $(pwd)/e2e/actual-output | ||
|
||
diff --ignore-all-space --side-by-side --suppress-common-lines e2e/expected-output e2e/actual-output | ||
diff --ignore-all-space e2e/expected-output e2e/actual-output |