Skip to content

Commit 1695705

Browse files
committed
Add Ruby RTJO language tests
CI Job triggered by label
1 parent 834594f commit 1695705

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: "Ruby: Run RTJO Language Tests"
2+
3+
on:
4+
push:
5+
paths:
6+
- "ruby/**"
7+
- "shared/**"
8+
- .github/workflows/ruby-build.yml
9+
- .github/actions/fetch-codeql/action.yml
10+
- codeql-workspace.yml
11+
branches:
12+
- main
13+
- "rc/*"
14+
pull_request:
15+
paths:
16+
- "ruby/**"
17+
- "shared/**"
18+
- .github/workflows/ruby-qltest.yml
19+
- .github/actions/fetch-codeql/action.yml
20+
- codeql-workspace.yml
21+
branches:
22+
- main
23+
- "rc/*"
24+
types:
25+
- opened
26+
- synchronize
27+
- reopened
28+
- labeled
29+
30+
env:
31+
CARGO_TERM_COLOR: always
32+
33+
defaults:
34+
run:
35+
working-directory: ruby
36+
37+
permissions:
38+
contents: read
39+
40+
jobs:
41+
qltest-rtjo:
42+
if: github.repository_owner == 'github' && github.event.label.name == 'Run RTJO Language Tests'
43+
runs-on: ubuntu-latest-xl
44+
strategy:
45+
fail-fast: false
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: ./.github/actions/fetch-codeql
49+
- uses: ./ruby/actions/create-extractor-pack
50+
- name: Cache compilation cache
51+
id: query-cache
52+
uses: ./.github/actions/cache-query-compilation
53+
with:
54+
key: ruby-qltest
55+
- name: Run QL tests
56+
run: |
57+
codeql test run --dynamic-join-order-mode=all --threads=0 --ram 50000 --search-path "${{ github.workspace }}" --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 }}"
58+
env:
59+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)