Skip to content

Commit e6c5975

Browse files
author
Stephan Brandauer
authored
Merge pull request github#11484 from erik-krogh/js-ml-cache
ATM: use the query compilation cache in the ATM qltest
2 parents 8af2138 + 0eae638 commit e6c5975

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

.github/workflows/js-ml-tests.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,46 +23,43 @@ defaults:
2323
working-directory: javascript/ql/experimental/adaptivethreatmodeling
2424

2525
jobs:
26-
qlcompile:
27-
name: Check QL compilation
28-
runs-on: ubuntu-latest
26+
qltest:
27+
name: Test QL
28+
runs-on: ubuntu-latest-xl
2929
steps:
3030
- uses: actions/checkout@v3
3131

3232
- uses: ./.github/actions/fetch-codeql
3333

3434
- name: Install pack dependencies
3535
run: |
36-
for pack in modelbuilding src; do
36+
for pack in modelbuilding src test; do
3737
codeql pack install --mode verify -- "${pack}"
3838
done
39+
40+
- name: Cache compilation cache
41+
id: query-cache
42+
uses: ./.github/actions/cache-query-compilation
43+
with:
44+
key: js-ml-test
3945

4046
- name: Check QL compilation
4147
run: |
4248
codeql query compile \
4349
--check-only \
44-
--ram 5120 \
50+
--ram 52000 \
4551
--additional-packs "${{ github.workspace }}" \
4652
--threads=0 \
53+
--compilation-cache "${{ steps.query-cache.outputs.cache-dir }}" \
4754
-- \
4855
lib modelbuilding src
4956
50-
qltest:
51-
name: Run QL tests
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v3
55-
56-
- uses: ./.github/actions/fetch-codeql
57-
58-
- name: Install pack dependencies
59-
run: codeql pack install -- test
60-
6157
- name: Run QL tests
6258
run: |
6359
codeql test run \
6460
--threads=0 \
65-
--ram 5120 \
61+
--ram 52000 \
6662
--additional-packs "${{ github.workspace }}" \
63+
--compilation-cache "${{ steps.query-cache.outputs.cache-dir }}" \
6764
-- \
68-
test
65+
test

0 commit comments

Comments
 (0)