-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35b3ef4
commit 768a418
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ name: BrowserStack Tests | |
on: | ||
pull_request: | ||
branches: [ main ] | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
tests: | ||
|
@@ -13,6 +15,11 @@ jobs: | |
- name: Checkout 🚀🚀 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python 🔧🔧 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install dependencies ➕➕ | ||
run: pip install -r requirements.txt | ||
|
||
|
@@ -25,11 +32,11 @@ jobs: | |
- name: Run tests 🧪🧪 | ||
run: browserstack-sdk robot -d ./reports -i browserstack tests/ | ||
|
||
- name: Upload Reports 📖📖 | ||
- name: Publish Robot Reports 📄📄 | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: Reports | ||
name: Robot-Reports | ||
path: reports | ||
retention-days: 90 | ||
if-no-files-found: warn | ||
|
@@ -56,4 +63,24 @@ jobs: | |
SLACK_ICON: https://cdn-icons-png.flaticon.com/512/3271/3271351.png | ||
SLACK_TITLE: 'Some tests failed' | ||
SLACK_MESSAGE: ':fire: Tests failed :fire:' | ||
SLACK_USERNAME: FAILURE | ||
SLACK_USERNAME: FAILURE | ||
|
||
reports: | ||
if: always() | ||
needs: [tests] | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
name: Reports 📄📄 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download Robot Reports | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Robot-Reports | ||
path: reports | ||
|
||
- name: Send report to commit | ||
uses: joonvena/[email protected] | ||
with: | ||
gh_access_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
768a418
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Robot Results
Passed Tests
Checkbox
Drag Drop
Radio