Skip to content

Commit 92fd7b1

Browse files
authored
Fix the pipeline (#147)
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.
1 parent 6bbcaa0 commit 92fd7b1

File tree

7 files changed

+5
-13
lines changed

7 files changed

+5
-13
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Unit Tests"
1+
name: "Tests"
22

33
on:
44
push:

e2e/scenario0/expected.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Writing lock file
66
Installing dependencies from lock file (including require-dev)
77
Nothing to install, update or remove
88
Generating autoload files
9-
No installed packages - skipping audit.
109
[bamarni-bin] Checking namespace vendor-bin/ns2
1110
Loading composer repositories with package information
1211
Updating dependencies
@@ -15,4 +14,3 @@ Writing lock file
1514
Installing dependencies from lock file (including require-dev)
1615
Nothing to install, update or remove
1716
Generating autoload files
18-
No installed packages - skipping audit.

e2e/scenario1/expected.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Writing lock file
1212
Installing dependencies from lock file (including require-dev)
1313
Nothing to install, update or remove
1414
Generating autoload files
15-
No installed packages - skipping audit.
1615
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario1.
1716
[bamarni-bin] Checking namespace vendor-bin/ns2
1817
[bamarni-bin] Changed current directory to vendor-bin/ns2.
@@ -26,5 +25,4 @@ Writing lock file
2625
Installing dependencies from lock file (including require-dev)
2726
Nothing to install, update or remove
2827
Generating autoload files
29-
No installed packages - skipping audit.
3028
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario1.

e2e/scenario11/expected.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ Writing lock file
1717
Installing dependencies from lock file (including require-dev)
1818
Nothing to install, update or remove
1919
Generating autoload files
20-
No installed packages - skipping audit.
21-
No security vulnerability advisories found

e2e/scenario3/expected.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ Writing lock file
2828
Installing dependencies from lock file (including require-dev)
2929
Nothing to install, update or remove
3030
Generating autoload files
31-
No installed packages - skipping audit.
3231
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario3.
33-
No security vulnerability advisories found
3432
–––––––––––––––––––––
3533
[bamarni-bin] Calling onCommandEvent().
3634
[bamarni-bin] The command is being forwarded.
@@ -47,7 +45,6 @@ Nothing to modify in lock file
4745
Installing dependencies from lock file (including require-dev)
4846
Nothing to install, update or remove
4947
Generating autoload files
50-
No installed packages - skipping audit.
5148
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario3.
5249
Loading composer repositories with package information
5350
Updating dependencies
@@ -60,4 +57,3 @@ Generating autoload files
6057
> post-autoload-dump: Bamarni\Composer\Bin\BamarniBinPlugin->onPostAutoloadDump
6158
[bamarni-bin] Calling onPostAutoloadDump().
6259
[bamarni-bin] Command already forwarded within the process: skipping.
63-
No security vulnerability advisories found

e2e/scenario8/expected.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,4 @@ Writing lock file
2828
Installing dependencies from lock file (including require-dev)
2929
Nothing to install, update or remove
3030
Generating autoload files
31-
No installed packages - skipping audit.
3231
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario8.
33-
No security vulnerability advisories found

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
stopOnFailure="false"
1212
bootstrap="vendor/autoload.php"
1313
>
14+
<php>
15+
<env name="COMPOSER_NO_AUDIT" value="1"/>
16+
</php>
17+
1418
<testsuites>
1519
<testsuite name="Composer Bin Plugin Test Suite">
1620
<directory>tests</directory>

0 commit comments

Comments
 (0)