fix
This commit is contained in:
@@ -37,13 +37,31 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Test results:"
|
echo "Test results:"
|
||||||
find ./TestResults -name "*.trx" -exec echo "Found test result file: {}" \;
|
find ./TestResults -name "*.trx" -exec echo "Found test result file: {}" \;
|
||||||
|
echo "File sizes:"
|
||||||
|
find ./TestResults -name "*.trx" -exec ls -lh {} \;
|
||||||
|
|
||||||
|
- name: Compress test results
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
if [ -d "./TestResults" ] && [ "$(ls -A ./TestResults)" ]; then
|
||||||
|
echo "Compressing test results..."
|
||||||
|
tar -czf test-results.tar.gz -C ./TestResults .
|
||||||
|
echo "Compressed file size:"
|
||||||
|
ls -lh test-results.tar.gz
|
||||||
|
else
|
||||||
|
echo "No test results to compress"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Upload test results
|
- name: Upload test results
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
|
timeout-minutes: 10
|
||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: ./TestResults/
|
path: |
|
||||||
|
./TestResults/
|
||||||
|
./test-results.tar.gz
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
|
compression-level: 6
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user