Fail analyze step by passing an invalid option to database finalize (#2189)

As the `ram: 1` trick won't work anymore with updates to the CLI.
This commit is contained in:
Angela P Wen 2024-03-11 06:57:49 -07:00 committed by GitHub
parent 2fa207a8b7
commit 532ca5486e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,9 +50,11 @@ jobs:
run: ./build.sh
- uses: ./../action/analyze
id: analysis
env:
# Forces a failure in this step.
CODEQL_ACTION_EXTRA_OPTIONS: '{ "database": { "finalize": ["--invalid-option"] } }'
with:
expect-error: true
ram: 1
download-and-check-artifacts:
name: Download and check debug artifacts after failure in analyze
needs: upload-artifacts