2021-09-02 15:12:31 +01:00
|
|
|
name: "Custom source root"
|
|
|
|
|
description: "Checks that the argument specifying a non-default source root works"
|
2026-03-11 10:41:31 +00:00
|
|
|
# This feature is not compatible with old CLIs
|
|
|
|
|
versions:
|
|
|
|
|
- linked
|
|
|
|
|
- default
|
|
|
|
|
- nightly-latest
|
2021-09-02 15:12:31 +01:00
|
|
|
steps:
|
|
|
|
|
- name: Move codeql-action
|
|
|
|
|
run: |
|
|
|
|
|
mkdir ../new-source-root
|
|
|
|
|
mv * ../new-source-root
|
|
|
|
|
- uses: ./../action/init
|
|
|
|
|
with:
|
|
|
|
|
languages: javascript
|
|
|
|
|
source-root: ../new-source-root
|
|
|
|
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
|
|
|
|
- uses: ./../action/analyze
|
|
|
|
|
with:
|
|
|
|
|
skip-queries: true
|
|
|
|
|
- name: Assert database exists
|
|
|
|
|
run: |
|
|
|
|
|
cd "$RUNNER_TEMP/codeql_databases"
|
|
|
|
|
if [[ ! -d javascript ]]; then
|
|
|
|
|
echo "Did not find a JavaScript database"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|