Skip to content

Commit

Permalink
Fix the pipeline (#147)
Browse files Browse the repository at this point in the history
Composer now skips the audit by default in the pipeline. To mimic this locally, we can simply set `COMPOSER_NO_AUDIT=1` in the PHPUnit config.
  • Loading branch information
theofidry authored Oct 31, 2022
1 parent 6bbcaa0 commit 92fd7b1
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Unit Tests"
name: "Tests"

on:
push:
Expand Down
2 changes: 0 additions & 2 deletions e2e/scenario0/expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
No installed packages - skipping audit.
[bamarni-bin] Checking namespace vendor-bin/ns2
Loading composer repositories with package information
Updating dependencies
Expand All @@ -15,4 +14,3 @@ Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
No installed packages - skipping audit.
2 changes: 0 additions & 2 deletions e2e/scenario1/expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
No installed packages - skipping audit.
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario1.
[bamarni-bin] Checking namespace vendor-bin/ns2
[bamarni-bin] Changed current directory to vendor-bin/ns2.
Expand All @@ -26,5 +25,4 @@ Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
No installed packages - skipping audit.
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario1.
2 changes: 0 additions & 2 deletions e2e/scenario11/expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
No installed packages - skipping audit.
No security vulnerability advisories found
4 changes: 0 additions & 4 deletions e2e/scenario3/expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
No installed packages - skipping audit.
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario3.
No security vulnerability advisories found
–––––––––––––––––––––
[bamarni-bin] Calling onCommandEvent().
[bamarni-bin] The command is being forwarded.
Expand All @@ -47,7 +45,6 @@ Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
No installed packages - skipping audit.
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario3.
Loading composer repositories with package information
Updating dependencies
Expand All @@ -60,4 +57,3 @@ Generating autoload files
> post-autoload-dump: Bamarni\Composer\Bin\BamarniBinPlugin->onPostAutoloadDump
[bamarni-bin] Calling onPostAutoloadDump().
[bamarni-bin] Command already forwarded within the process: skipping.
No security vulnerability advisories found
2 changes: 0 additions & 2 deletions e2e/scenario8/expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
No installed packages - skipping audit.
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario8.
No security vulnerability advisories found
4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
stopOnFailure="false"
bootstrap="vendor/autoload.php"
>
<php>
<env name="COMPOSER_NO_AUDIT" value="1"/>
</php>

<testsuites>
<testsuite name="Composer Bin Plugin Test Suite">
<directory>tests</directory>
Expand Down

0 comments on commit 92fd7b1

Please sign in to comment.