-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (59 loc) · 2.21 KB
/
check_rusi_trainer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Check rusi_trainer
on:
push:
branches:
- master
paths:
- 'services/rusi_trainer/**'
- 'checkers/rusi_trainer/**'
- 'sploits/rusi_trainer/**'
workflow_dispatch: {}
jobs:
check_service_rusi_trainer:
name: Check service rusi_trainer
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup rusi_trainer
run: (cd ./services/rusi_trainer && docker-compose pull && docker-compose build && docker-compose up --build -d)
check_checker_rusi_trainer:
name: Check checker rusi_trainer
runs-on: ubuntu-20.04
if: ${{ true }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup rusi_trainer
run: (cd ./services/rusi_trainer && docker-compose pull && docker-compose build && docker-compose up --build -d)
- name: Sleep some time. Wait service ready
run: sleep 30
- name: Prepare python for checker
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Setup checker libraries
run: if [ -f checkers/rusi_trainer/requirements.txt ]; then python -m pip install -r checkers/rusi_trainer/requirements.txt; fi
- name: Test checker on service
run: (cd ./checkers/rusi_trainer && ./rusi_trainer.checker.py TEST 127.0.0.1)
check_sploit_rusi_trainer:
name: Check sploit rusi_trainer
runs-on: ubuntu-20.04
if: ${{ true }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup rusi_trainer
run: (cd ./services/rusi_trainer && docker-compose pull && docker-compose build && docker-compose up --build -d)
- name: Sleep some time. Wait service ready
run: sleep 30
- name: Prepare python for checker
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Setup checker libraries
run: if [ -f checkers/rusi_trainer/requirements.txt ]; then python -m pip install -r checkers/rusi_trainer/requirements.txt; fi
- name: Setup sploit libraries
run: if [ -f sploits/rusi_trainer/requirements.txt ]; then python -m pip install -r sploits/rusi_trainer/requirements.txt; fi
- name: Test sploit on service
run: (./tools/check_sploit.py rusi_trainer)