Skip to content

Commit f1468ab

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

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed

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

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
ls -l
21+
cd actions
22+
ls -l
23+
if ! grep -q 'overlayBaseDatabase: false' codeql-database.yml ; then
24+
echo "This test needs to be updated to use a non-overlay language."
25+
exit 1
26+
fi

0 commit comments

Comments
 (0)