-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from Rakshithb1/master
[DSD-5590] Created browserstack-web.yml
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: BrowserStack Web Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
message: | ||
description: 'Message for manually triggering' | ||
required: false | ||
default: 'Triggered for Updates' | ||
type: string | ||
push: | ||
branches: | ||
- '!release-branch' | ||
- release* | ||
- master | ||
- 1.* | ||
- develop | ||
|
||
jobs: | ||
inji-web-test: | ||
runs-on: ubuntu-latest | ||
env: | ||
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | ||
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run tests | ||
run: | | ||
cd inji-web-test | ||
mvn clean test -DtestngXmlFile="TestNg.xml" | ||
- name: Save test reports | ||
uses: actions/upload-artifact@v3 | ||
if: success() || failure() | ||
with: | ||
name: test-reports | ||
path: inji-web-test/test-output |