forked from MarketSquare/robotframework-camunda
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.22 KB
/
robot-test.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
name: Robot tests
on: [push, pull_request]
jobs:
integrationtest:
runs-on: ubuntu-latest
container: python:3.9
strategy:
matrix:
camunda_version: ['run-7.14.0','run-7.15.0']
services:
camunda:
image: camunda/camunda-bpm-platform:${{ matrix.camunda_version }}
ports:
- 8080:8080
steps:
- uses: actions/checkout@v2
- name: Test with robot
run: |
pip install .
sleep 10
robot -d logs -b debug.log -x xunit.xml -L DEBUG -v CAMUNDA_HOST:http://camunda:8080 tests/robot/**/*.robot
- name: Archive production artifacts
uses: actions/upload-artifact@v2
if: always()
with:
name: robot logs
path: |
logs/
publish-test-results:
name: "Publish Unit Tests Results"
needs: integrationtest
runs-on: ubuntu-latest
# the build-and-test job might be skipped, we don't need to run this job then
if: success() || failure()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: robot logs
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: xunit.xml