feat: add robot framework CI

This commit is contained in:
Zoe Roux
2022-06-20 10:35:28 +02:00
parent 5faa4dc12c
commit eb6ac6091c
4 changed files with 44 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
name: RobotTests
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Build the app
run: docker-compose build
- name: Start the service
run: docker-compose up -d
- name: Perform healthchecks
run: |
docker-compose ps -a
wget --retry-connrefused http://localhost:3000 # /healthcheck
- name: Run robot tests
run: |
pip install -r back/tests/robot/requirements.txt
robot -d out back/tests/robot/
- uses: actions/upload-artifact@v2
with:
name: results
path: out
+4
View File
@@ -0,0 +1,4 @@
[tool.robotidy]
configure = [
"MergeAndOrderSections:order=comments,settings,keywords,variables,testcases"
]
+2
View File
@@ -0,0 +1,2 @@
robotframework
RESTinstance
+4
View File
@@ -0,0 +1,4 @@
*** Settings ***
Documentation Common things to handle rest requests
Library REST http://localhost:3000/api