Skip to content

Commit

Permalink
👷add tests automation
Browse files Browse the repository at this point in the history
  • Loading branch information
TarradeMarc committed Oct 18, 2024
1 parent 8630b14 commit 4a15a26
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/run-proxy-tests.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion tests/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ services:

exhaust:
container_name: exhaust
build: exhaust
image: exhausttest
depends_on:
- fluent
Expand Down

0 comments on commit 4a15a26

Please sign in to comment.