Skip to content

Commit

Permalink
Merge 418944b into a3b3739
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfe1 committed Sep 19, 2022
2 parents a3b3739 + 418944b commit 5a2090f
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 7 deletions.
50 changes: 46 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,15 @@ jobs:
with:
timeout_minutes: 45
max_attempts: 10
command: robot -i Edge test
new_command_on_retry: sleep 30; robot --rerunfailed "output.xml" -i Edge test
command: robot -i Edge --output reports/outputEdge.xml test
new_command_on_retry: sleep 30; robot --rerunfailed "reports/outputEdge.xml" -i Edge --output reports/outputEdge.xml test

- name: Upload test results
uses: actions/upload-artifact@v1
if: always()
with:
name: reportsEdge
path: reports

run-tests-chrome:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -65,10 +72,17 @@ jobs:
max_attempts: 10
command: |
${{ matrix.set_display }}
robot --randomize suites -e BrokenORWindowsOREdge test
robot --randomize suites -e BrokenORWindowsOREdge --output reports/outputChrome.xml test
new_command_on_retry: |
${{ matrix.set_display }}
robot --rerunfailed "output.xml" -e BrokenORWindowsOREdge test
robot --rerunfailed "reports/outputChrome.xml" -e BrokenORWindowsOREdge --output reports/outputChrome.xml test
- name: Upload test results
uses: actions/upload-artifact@v1
if: always()
with:
name: reportsChrome
path: reports

run-tests-unit:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -100,3 +114,31 @@ jobs:
parallel: true
run: |
coveralls --service=github
generate_report:
if: always()
needs: [run-tests-chrome, run-tests-edge]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download reportsChrome
uses: actions/download-artifact@v1
with:
name: reportsChrome
path: reports
- name: Download reportsEdge
uses: actions/download-artifact@v1
with:
name: reportsEdge
path: reports
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install robotframework
- name: combine reports
run: rebot -o reports/output.xml reports/*.xml
- name: Send report to commit
uses: joonvena/robotframework-reporter-action@v2.1
with:
gh_access_token: ${{ secrets.GITHUB_TOKEN }}\
show_passed_tests: 'false'
Loading

0 comments on commit 5a2090f

Please sign in to comment.