diff --git a/.github/workflows/browserstack-web.yml b/.github/workflows/browserstack-web.yml new file mode 100644 index 00000000..f72fcd5c --- /dev/null +++ b/.github/workflows/browserstack-web.yml @@ -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