-
Notifications
You must be signed in to change notification settings - Fork 203
38 lines (31 loc) · 938 Bytes
/
main.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
name: Playbook Validation
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch all branches
run: |
git fetch --all
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Specify the Python version you need
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install robotframework
pip install -r .github/tests/requirements.txt
- name: Run Robot Framework tests
run: |
mkdir -p results
python .github/tests/run_on_changed_playbooks.py --base-branch=6.3 --robot-path=.github/tests/robot/PlaybookScanner.robot
- name: Archive test results
uses: actions/upload-artifact@v3
with:
name: robot-results
path: results