Skip to content

Commit

Permalink
chore(github): update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DumbergerL committed Dec 11, 2023
1 parent 6810dac commit bb3ae51
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bb3ae51

Please sign in to comment.