-
Notifications
You must be signed in to change notification settings - Fork 157
43 lines (39 loc) · 1.24 KB
/
comment-run.yml
File metadata and controls
43 lines (39 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This job is to test different maven profiles in sdk branch again Pull Request raised
# This workflow targets Java with Maven execution
name: TestNG SDK Test workflow for Maven on comment RUN_TESTS
on:
issue_comment:
types: [ created, edited ]
jobs:
comment-run:
if: contains(github.event.comment.body, 'RUN_TESTS')
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
max-parallel: 3
matrix:
java: [ '8', '11', '17' ]
os: [ 'macos-latest', 'windows-latest', 'ubuntu-latest' ]
name: TestNG Repo ${{ matrix.Java }} - ${{ matrix.os }} Sample
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Run mvn test
run: |
mvn compile
mvn test
- name: Run mvn profile sample-local-test
run: |
mvn compile
mvn test -P sample-local-test
- name: Run mvn profile sample-test
run: |
mvn compile
mvn test -P sample-test