From 92fd7b1e6e9cdae19b0d57369d8ad31a37b6a880 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20FIDRY?=
<5175937+theofidry@users.noreply.github.com>
Date: Mon, 31 Oct 2022 09:38:03 +0100
Subject: [PATCH] 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.
---
.github/workflows/tests.yaml | 2 +-
e2e/scenario0/expected.txt | 2 --
e2e/scenario1/expected.txt | 2 --
e2e/scenario11/expected.txt | 2 --
e2e/scenario3/expected.txt | 4 ----
e2e/scenario8/expected.txt | 2 --
phpunit.xml.dist | 4 ++++
7 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 4986832..5bec38a 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -1,4 +1,4 @@
-name: "Unit Tests"
+name: "Tests"
on:
push:
diff --git a/e2e/scenario0/expected.txt b/e2e/scenario0/expected.txt
index a486ab7..a192945 100644
--- a/e2e/scenario0/expected.txt
+++ b/e2e/scenario0/expected.txt
@@ -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
@@ -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.
diff --git a/e2e/scenario1/expected.txt b/e2e/scenario1/expected.txt
index 572559b..d0dcc1c 100644
--- a/e2e/scenario1/expected.txt
+++ b/e2e/scenario1/expected.txt
@@ -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.
@@ -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.
diff --git a/e2e/scenario11/expected.txt b/e2e/scenario11/expected.txt
index c9f1d98..1d2c3f3 100644
--- a/e2e/scenario11/expected.txt
+++ b/e2e/scenario11/expected.txt
@@ -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
diff --git a/e2e/scenario3/expected.txt b/e2e/scenario3/expected.txt
index 3d587ba..133ffe7 100644
--- a/e2e/scenario3/expected.txt
+++ b/e2e/scenario3/expected.txt
@@ -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.
@@ -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
@@ -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
diff --git a/e2e/scenario8/expected.txt b/e2e/scenario8/expected.txt
index ab2d7fa..625e41f 100644
--- a/e2e/scenario8/expected.txt
+++ b/e2e/scenario8/expected.txt
@@ -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
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 6d57a8f..b5411dd 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -11,6 +11,10 @@
stopOnFailure="false"
bootstrap="vendor/autoload.php"
>
+
+
+
+
tests