Skip to content

Commit

Permalink
add robot docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-qa committed Feb 10, 2024
1 parent a762afc commit f97903b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/robot-ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: Running Terratest and Deploy Report Github Pages
name: Robot Framework CI

on: push

jobs:
run_test:
test:
runs-on: ubuntu-latest
name: Setup Python and Run Tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- run: pip install -r requirements.txt
- uses: nanasess/setup-chromedriver@v2

- name: Execute tests
uses: joonvena/robotframework-docker-action@v0.1
env:
BROWSER: chrome
ROBOT_TESTS_DIR: ${{ github.workspace }}/tests
ROBOT_REPORTS_DIR: ${{ github.workspace }}/reports

- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
chromedriver-version: '121.0.6167.85'
- run: robot -d reports/ tests/*.robot
name: reports
path: ${{ github.workspace }}/reports
2 changes: 1 addition & 1 deletion setup.resource
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ${CHROME_OPTIONS} add_experimental_option('excludeSwitches'
*** Keywords ***
Nova Sessão
#chrome or headlesschrome
Open Browser https://www.saucedemo.com chrome options=${CHROME_OPTIONS} executable_path="/usr/local/bin"
Open Browser https://www.saucedemo.com chrome options=${CHROME_OPTIONS}
Maximize Browser Window

Encerra Sessão
Expand Down

0 comments on commit f97903b

Please sign in to comment.