From ef145d688445016133d515516392d41cddac6a29 Mon Sep 17 00:00:00 2001 From: Angela P Wen Date: Wed, 3 Aug 2022 09:35:32 +0200 Subject: [PATCH] Display downloaded file structure --- .github/workflows/debug-artifacts.yml | 42 +++++++++++++-------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/debug-artifacts.yml b/.github/workflows/debug-artifacts.yml index f7af04ff2..ce8921012 100644 --- a/.github/workflows/debug-artifacts.yml +++ b/.github/workflows/debug-artifacts.yml @@ -44,35 +44,35 @@ jobs: - uses: ./../action/analyze id: analysis download-and-check-artifacts: - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - version: [stable-20210308, stable-20210319, stable-20210809, cached, latest, nightly-latest] name: Download and check debug artifacts needs: upload-artifacts timeout-minutes: 45 runs-on: ubuntu-latest steps: - uses: actions/download-artifact@v3 - with: - name: my-debug-artifacts-${{ matrix.os }}-${{ matrix.version }} + - name: Display structure of downloaded files + run: ls -R - shell: bash run: | + OPERATING_SYSTEMS="ubuntu-latest macos-latest" + VERSIONS="stable-20210308 stable-20210319 stable-20210809 cached latest nightly-latest" LANGUAGES="cpp csharp go java javascript python" - for language in $LANGUAGES; do - echo "Checking $language" - if [[ ! -f "$language.sarif" ]] ; then - echo "Missing a SARIF file for $language" - exit 1 - fi - if [[ ! -f "my-db-$language.zip" ]] ; then - echo "Missing a database bundle for $language" - exit 1 - fi - if [[ ! -d "$language/log" ]] ; then - echo "Missing logs for $language" - exit 1 - fi - done + for os in $OPERATING_SYSTEMS; do + for version in $VERSIONS; do + for language in $LANGUAGES; do + echo "Checking $language in $version on $os" + if [[ ! -f "$language.sarif" ]] ; then + echo "Missing a SARIF file for $language" + exit 1 + fi + if [[ ! -f "my-db-$language.zip" ]] ; then + echo "Missing a database bundle for $language" + exit 1 + fi + if [[ ! -d "$language/log" ]] ; then + echo "Missing logs for $language" + exit 1 + fi + done env: INTERNAL_CODEQL_ACTION_DEBUG_LOC: true \ No newline at end of file