Skip to content

Commit

Permalink
chore(github): check if config exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DumbergerL committed Dec 11, 2023
1 parent 775638a commit 8cecd37
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,27 @@ jobs:

- name: Create integration-config file
run: |
printf '%s\n' "$INTEGRATION_CONFIG" > tests/Integration/integration.ini
printf '%s' "$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
echo "FILE SIZES IN tests/Integration:\n"
cd tests
cd Integration
ls -lh
- name: Check if integration file is empty
run: |
ls
if [ -s "tests/Integration/integration.ini" ]
then
echo "Integration config file is not empty"
Expand Down

0 comments on commit 8cecd37

Please sign in to comment.