Skip to content

Commit 348b12c

Browse files
authored
Merge pull request #268 from github/hvitved/db-upgrade-pr-check
Add DB upgrade script check
2 parents 4ec30b2 + 42daf5b commit 348b12c

File tree

2 files changed

+1256
-0
lines changed

2 files changed

+1256
-0
lines changed

.github/workflows/qltest.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ jobs:
3636
run: find ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 codeql/codeql query format --check-only
3737
- name: Check QL compilation
3838
run: codeql/codeql query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}" "ql/src" "ql/examples"
39+
- name: Check DB upgrade scripts
40+
run: |
41+
echo >empty.trap
42+
codeql/codeql dataset import -S ql/src/upgrades/initial/ruby.dbscheme testdb empty.trap
43+
codeql/codeql dataset upgrade testdb --additional-packs ql/src/upgrades
44+
diff -q testdb/ruby.dbscheme ql/src/ruby.dbscheme

0 commit comments

Comments
 (0)