Skip to content

Commit 378ba9c

Browse files
committed
Update singleTenant_integration_test.yml
1 parent eb5f4ba commit 378ba9c

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/singleTenant_integration_test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
- IntegrationTest_SingleFacet
2323
- IntegrationTest_MultipleFacet
2424
- IntegrationTest_Chapters_MultipleFacet
25-
25+
env:
26+
FILE_URL: ${{ 'http://www.eicar.org/download/eicar.com.txt' }}
27+
DOWNLOAD_PATH: ${{ 'eicar.com.txt' }}
2628
steps:
2729
- name: Checkout repository 📁
2830
uses: actions/checkout@v6
@@ -108,7 +110,18 @@ jobs:
108110
echo "CLIENT_SECRET=$escapedClientSecret" >> $GITHUB_OUTPUT
109111
echo "CLIENT_ID=$clientID" >> $GITHUB_OUTPUT
110112
echo "✅ Client details fetched successfully!"
111-
113+
- name: Download virus test file 📥
114+
run: |
115+
curl -fSL "$FILE_URL" -o "$DOWNLOAD_PATH"
116+
sleep 5
117+
if [ -f "$DOWNLOAD_PATH" ]; then
118+
FILE_NAME=$(basename "$DOWNLOAD_PATH")
119+
FILE_SIZE=$(stat -c '%s' "$DOWNLOAD_PATH")
120+
echo "File exists — Name: $FILE_NAME, Size: $FILE_SIZE bytes"
121+
else
122+
echo "❌ File NOT found at path: $DOWNLOAD_PATH"
123+
exit 1
124+
fi
112125
- name: Run integration tests 🎯 (${{ matrix.tokenFlow }} - ${{ matrix.testClass }})
113126
env:
114127
CLIENT_SECRET: ${{ steps.fetch_credentials.outputs.CLIENT_SECRET }}

0 commit comments

Comments
 (0)