File tree Expand file tree Collapse file tree 1 file changed +56
-20
lines changed
Expand file tree Collapse file tree 1 file changed +56
-20
lines changed Original file line number Diff line number Diff line change 1- run-appinspect-api :
2- needs : build
3- runs-on : ubuntu-latest
4- steps :
5- - uses : actions/checkout@v3
6- - uses : actions/download-artifact@v4
7- with :
8- name : my-package
9- path : app-dir/
10- - name : appinspect-api
11- 12- with :
13- username : ${{ secrets.SPL_COM_USER }}
14- password : ${{ secrets.SPL_COM_PASSWORD }}
15- app_path : app-dir/
16- - uses : actions/upload-artifact@v4
17- if : always()
18- with :
19- name : appinspect-api-html-report
20- path : AppInspect_response.html
1+ name : build-test-release
2+
3+ on : push
4+
5+ jobs :
6+
7+ build :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : Checkout repository
12+ uses : actions/checkout@v2
13+
14+ - name : Create subfolder
15+ run : mkdir my-package
16+
17+ - name : Install UCC
18+ run : |
19+ pip install splunk-add-on-ucc-framework
20+ pip install splunk-packaging-toolkit
21+
22+ - name : Build an app using UCC
23+ run : ucc-gen build
24+
25+ - name : Create tmp folder
26+ run : mkdir app-dir
27+
28+ - name : Create package
29+ run : ucc-gen package --path output/devtutorial_conf24 -o app-dir/
30+
31+ - name : Upload package
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : my-package
35+ path : app-dir/
36+
37+ run-appinspect-api :
38+ needs : build
39+ runs-on : ubuntu-latest
40+ steps :
41+ - uses : actions/checkout@v3
42+ - uses : actions/download-artifact@v4
43+ with :
44+ name : my-package
45+ path : app-dir/
46+ - name : appinspect-api
47+ 48+ with :
49+ username : ${{ secrets.SPL_COM_USER }}
50+ password : ${{ secrets.SPL_COM_PASSWORD }}
51+ app_path : app-dir/
52+ - uses : actions/upload-artifact@v4
53+ if : always()
54+ with :
55+ name : appinspect-api-html-report
56+ path : AppInspect_response.html
You can’t perform that action at this time.
0 commit comments