Skip to content

Commit 8aaa656

Browse files
committed
PR checks: add overlay-init-fallback.yml
1 parent 8dbcef5 commit 8aaa656

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

.github/workflows/__overlay-init-fallback.yml

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Overlay database init fallback"
2+
description: "Tests that overlay init action succeeds with non-overlay packs"
3+
versions: ["linked", "nightly-latest"]
4+
operatingSystems: ["ubuntu"]
5+
steps:
6+
- uses: ./../action/init
7+
with:
8+
languages: actions # Any language without overlay support will do
9+
tools: ${{ steps.prepare-test.outputs.tools-url }}
10+
env:
11+
CODEQL_OVERLAY_DATABASE_MODE: overlay-base
12+
- uses: ./../action/analyze
13+
id: analysis
14+
with:
15+
upload-database: false
16+
- name: Check database
17+
shell: bash
18+
run: |
19+
cd "$RUNNER_TEMP/codeql_databases"
20+
NON_OVERLAY_DB="$(grep -q 'overlayBaseDatabase: false' codeql-database.yml)"
21+
if [[ -z "$NON_OVERLAY_DB" ]]; then
22+
echo "This test needs to be updated to use a non-overlay language."
23+
exit 1
24+
fi

0 commit comments

Comments
 (0)