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.
This is to mimic some failures that happened on PHPStan repo
- Loading branch information
Showing
4 changed files
with
51 additions
and
2 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 |
---|---|---|
|
@@ -238,3 +238,30 @@ jobs: | |
|
||
- name: "Run E2E tests" | ||
run: "./e2e/test-finders.sh" | ||
|
||
e2e-ubuntu-restricted: | ||
name: "End-to-End tests Ubuntu (restricted)" | ||
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-restricted e2e/expected-output" | ||
|
||
- name: "Run E2E tests" | ||
run: "./e2e/test-restricted-finders.sh" |
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,13 @@ | ||
CpuInfoFinder: F | ||
DummyCpuCoreFinder(value=1): . | ||
HwLogicalFinder: F | ||
HwPhysicalFinder: F | ||
_NProcessorFinder: F | ||
NProcessorFinder: F | ||
NProcFinder(all=true): F | ||
NProcFinder(all=false): F | ||
NullCpuCoreFinder: F | ||
OnlyOnWindowsFinder(DummyCpuCoreFinder(value=1)): F | ||
SkipOnWindowsFinder(DummyCpuCoreFinder(value=1)): . | ||
WmicPhysicalFinder: F | ||
WmicLogicalFinder: 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,9 @@ | ||
#!/bin/sh | ||
|
||
execute_finders() { | ||
php -d open_basedir="$(cd .. && pwd):$(php -r 'echo sys_get_temp_dir();')" -d disable_functions="pcntl_exec,pcntl_fork,exec,passthru,proc_open,shell_exec,system,popen" "$(pwd)/e2e/execute-finders.php" 2>&1 | ||
} | ||
|
||
execute_finders > $(pwd)/e2e/actual-output | ||
|
||
diff --ignore-all-space e2e/expected-output e2e/actual-output |
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