Debug workflow.

This commit is contained in:
Cornelius Riemenschneider
2022-07-12 10:13:01 +00:00
committed by GitHub
parent 688508d8cb
commit a92229a995
210 changed files with 8997 additions and 9197 deletions
+13 -47
View File
@@ -13,6 +13,7 @@ on:
- main
- releases/v1
- releases/v2
- criemen/debug-action
pull_request:
types:
- opened
@@ -25,30 +26,8 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-latest
version: stable-20210308
- os: macos-latest
version: stable-20210308
- os: ubuntu-latest
version: stable-20210319
- os: macos-latest
version: stable-20210319
- os: ubuntu-latest
version: stable-20210809
- os: macos-latest
version: stable-20210809
- os: ubuntu-latest
version: cached
- os: macos-latest
version: cached
- os: ubuntu-latest
version: latest
- os: macos-latest
version: latest
- os: ubuntu-latest
version: nightly-latest
- os: macos-latest
version: nightly-latest
name: Debug artifact upload
timeout-minutes: 45
runs-on: ${{ matrix.os }}
@@ -63,34 +42,21 @@ jobs:
- uses: ./../action/init
with:
tools: ${{ steps.prepare-test.outputs.tools-url }}
debug: true
debug-artifact-name: my-debug-artifacts
debug-database-name: my-db
languages: csharp, go
- name: Build code
shell: bash
run: ./build.sh
env:
SEMMLE_DEBUG_TRACER: 10000
- uses: ./../action/analyze
id: analysis
- uses: actions/download-artifact@v3
timeout-minutes: 1
env:
SEMMLE_DEBUG_TRACER: 10000
- uses: actions/upload-artifact@v3
if: always()
with:
name: my-debug-artifacts-${{ matrix.os }}-${{ matrix.version }}
- shell: bash
run: |
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
env:
INTERNAL_CODEQL_ACTION_DEBUG_LOC: true
name: debug-artifact-log
path: |
/Users/runner/work/_temp/codeql_databases/
!/Users/runner/work/_temp/codeql_databases/working/copy-root