From bb3ae511ceffe73e1245960ebd1c209fc8cc3a48 Mon Sep 17 00:00:00 2001 From: DumbergerL Date: Mon, 11 Dec 2023 12:22:26 +0100 Subject: [PATCH] chore(github): update ci --- .github/workflows/integration-tests.yml | 26 ++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 2d86f502..6a9ffa2e 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -41,12 +41,32 @@ jobs: - name: Create integration-config file run: | - printf "$INTEGRATION_CONFIG" >> tests/Integration/integration.ini - printf "$INTEGRATION_CONFIG" - cat tests/Integration/integration.ini + printf '%s\n' "$INTEGRATION_CONFIG" > tests/Integration/integration.ini shell: bash env: INTEGRATION_CONFIG: ${{ secrets.INTEGRATION_CONFIG }} + - name: Check if integration-config file exists + run: | + ls + if [ -f "tests/Integration/integration.ini" ] + then + echo "Integration file exists" + else + echo "Error: Could not find integration config file" + throw "Error: Could not find integration config file" + fi + + - name: Check if integration file is empty + run: | + ls + if [ -s "tests/Integration/integration.ini" ] + then + echo "Integration config file is not empty" + else + echo "Error: Integration config file is empty" + throw "Error: Integration config file is empty" + fi + - name: Run integration test suite run: composer run-script test-integration \ No newline at end of file