Skip to content

Commit

Permalink
Run robot tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ilesoft committed Mar 24, 2024
1 parent bebace7 commit 080bee6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/robot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Robot framework tests

on: push

jobs:
basic-funtionality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: start SUT
run: docker compose up --quiet-pull --detach --build
- name: Set up Python 3.12.1
uses: actions/setup-python@v5
with:
python-version: 3.12.1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install robotframework
pip install robotframework-seleniumlibrary
- name: wait SUT to start
run: while ! curl -s -f 'http://localhost:3000/kipa' ; do sleep 2; docker ps; done
shell: bash
- name: run robot
run: robot --outputdir ./test-report --variable BROWSER:headlessfirefox --exitonfailure web/robot/perustoiminnot.robot
- name: report
uses: actions/upload-artifact@v4
if: always()
with:
name: test-report
path: ./test-report
2 changes: 1 addition & 1 deletion web/robot/perustoiminnot.robot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Suite Teardown Close All Browsers And Stop Selenium Server
Test Setup Open Competition
Test Teardown Close Browser
Force Tags regression smoke
Library Selenium2Library
Library SeleniumLibrary
Resource yhteiset_resurssit.resource
Variables kipa_sivuosoitteet_ja_otsikot.py

Expand Down

0 comments on commit 080bee6

Please sign in to comment.