-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (25 loc) · 957 Bytes
/
Copy pathp16_2dMatrix.yaml
File metadata and controls
31 lines (25 loc) · 957 Bytes
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
name: 2D matrix demonstration - running different test suites on different runner machine os types
on:
workflow_dispatch:
jobs:
test-execution-via-2D-matrix:
strategy:
fail-fast: false # ✅ Ensures all combinations run even if one fails
matrix:
os: [ ubuntu-latest, macos-latest ]
test-suite-name: [smokeTestSuite.xml, regressionTestSuite.xml, sanityTestSuite.xml]
runs-on: ${{ matrix.os }}
steps:
- name: step 1. Starting the test
run: echo 'Testing is getting started'
- name: Step 2 - Checkout Code
uses: actions/checkout@v4
- name: Step 3 - Setup Java and Maven
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Step 4 - Run the selected tests
run: |
echo "Executing '${{ matrix.test-suite-name }}' tests..."
mvn clean test -Dsuite=${{ matrix.test-suite-name }}