diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 05e9759a..1c7cf5fd 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -49,8 +49,16 @@ jobs: timeout-minutes: 5 - name: Log files - run: find . - if: always() + run: | + echo "Listing files in the build folder:" + if [[ "$RUNNER_OS" == "Linux" || "$RUNNER_OS" == "macOS" ]]; then + # Unix-based (Linux/macOS) + find . -type f -exec echo {} \; + elif [[ "$RUNNER_OS" == "Windows" ]]; then + # Windows + dir /b . + fi + - name: Upload Failed test screenshots uses: actions/upload-artifact@v3.1.2 @@ -72,5 +80,5 @@ jobs: uses: actions/upload-artifact@v3.1.2 if: ${{ failure() }} with: - name: Failed Reports + name: Failed Reports - ${{ runner.os }} path: ./build/reports/tests/