BrowserStack Web Tests #41
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
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 |