Skip to content

Commit e062bea

Browse files
committed
adding two new workflows for testing bundles
1 parent ed85696 commit e062bea

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: ⚙️ Test Bundle Creation
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
branches:
9+
- 'main'
10+
workflow_dispatch:
11+
12+
jobs:
13+
test-bundle-creation:
14+
name: Test Bundle Creation
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Install QLT
21+
id: install-qlt
22+
uses: ./.github/actions/install-qlt-local
23+
with:
24+
qlt-version: 'latest'
25+
add-to-path: true
26+
27+
- name: Validate QLT Installation
28+
shell: bash
29+
run: |
30+
echo -e "Checking QLT Version:"
31+
echo "QLT Home: ${{ steps.install-qlt.outputs.qlt-home }}"
32+
qlt version
33+
34+
- name: Create Bundle (compiled)
35+
shell: bash
36+
run: |
37+
if ! qlt codeql run install --base example/ --custom-bundle ; then
38+
echo "Failed to generate bundle."
39+
exit 1
40+
fi
41+
42+
# ensure bundle runs
43+
44+
if ! qlt query run install-packs --base example/ ; then
45+
echo "Failed to install query packs with tool."
46+
exit 1
47+
fi
48+
49+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: ⚙️ Test Bundle Creation (Quick)
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
branches:
9+
- 'main'
10+
workflow_dispatch:
11+
12+
jobs:
13+
test-bundle-creation:
14+
name: Test Bundle Creation
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Install QLT
21+
id: install-qlt
22+
uses: ./.github/actions/install-qlt-local
23+
with:
24+
qlt-version: 'latest'
25+
add-to-path: true
26+
27+
- name: Validate QLT Installation
28+
shell: bash
29+
run: |
30+
echo -e "Checking QLT Version:"
31+
echo "QLT Home: ${{ steps.install-qlt.outputs.qlt-home }}"
32+
qlt version
33+
34+
- name: Create Bundle (quick)
35+
shell: bash
36+
run: |
37+
if ! qlt codeql run install --base example/ --quick-bundle ; then
38+
echo "Failed to generate bundle."
39+
exit 1
40+
fi
41+
42+
# ensure bundle runs
43+
44+
if ! qlt query run install-packs --base example/ ; then
45+
echo "Failed to install query packs with tool."
46+
exit 1
47+
fi
48+
49+

0 commit comments

Comments
 (0)