From 4a15a26dce0a37c288e64ee07a6d1203efd925c1 Mon Sep 17 00:00:00 2001 From: "mtarrade.sap@gmail.com" Date: Fri, 18 Oct 2024 15:58:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7add=20tests=20automation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/run-proxy-tests.yaml | 37 ++++++++++++++++++++++++++ tests/docker-compose.yaml | 1 - 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/run-proxy-tests.yaml diff --git a/.github/workflows/run-proxy-tests.yaml b/.github/workflows/run-proxy-tests.yaml new file mode 100644 index 0000000..a78f99f --- /dev/null +++ b/.github/workflows/run-proxy-tests.yaml @@ -0,0 +1,37 @@ +name: Run envoy proxy tests + +on: [push] + +jobs: + run-tests: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./tests + steps: + - name: Check out the repository to the runner + uses: actions/checkout@v4 + + - name: Set up Docker Compose + run: | + sudo curl -SL https://github.com/docker/compose/releases/download/v2.29.6/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose + sudo chmod +x /usr/local/bin/docker-compose + docker-compose --version + + - name: Set execute permissions for the test script + run: chmod +x ./runTests.sh + + - name: Run a script + run: | + OUTPUT=$(./runTests.sh) + echo "$OUTPUT" + + if echo "$OUTPUT" | grep -q 'FAIL'; then + echo -e "\033[0;31mTEST FAILED\033[0m" + echo One or more tests failed ! + exit 1 + else + echo -e "\033[0;32mTEST PASSED\033[0m" + echo All tests passed ! + exit 0 + fi diff --git a/tests/docker-compose.yaml b/tests/docker-compose.yaml index c361aff..8a9f8bb 100644 --- a/tests/docker-compose.yaml +++ b/tests/docker-compose.yaml @@ -42,7 +42,6 @@ services: exhaust: container_name: exhaust - build: exhaust image: exhausttest depends_on: - fluent