Skip to content

Commit 4af8d57

Browse files
committed
use compilation cache in ruby qltest
1 parent 24a973e commit 4af8d57

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ruby-qltest.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@ jobs:
5555
- uses: actions/checkout@v3
5656
- uses: ./.github/actions/fetch-codeql
5757
- uses: ./ruby/actions/create-extractor-pack
58+
- name: Cache compilation cache
59+
id: query-cache
60+
uses: ./.github/actions/cache-query-compilation
61+
with:
62+
key: ruby-qltest
5863
- name: Run QL tests
5964
run: |
60-
codeql test run --threads=0 --search-path "${{ github.workspace }}/ruby/extractor-pack" --check-databases --check-undefined-labels --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test
65+
codeql test run --threads=0 --search-path "${{ github.workspace }}/ruby/extractor-pack" --check-databases --check-undefined-labels --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
6166
env:
6267
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)