-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (24 loc) · 895 Bytes
/
Copy pathp15_matrix.yaml
File metadata and controls
30 lines (24 loc) · 895 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
name: 1D matrix demonstration - running different test suites on same runner machine
on:
workflow_dispatch:
jobs:
test-execution-via-1D-matrix:
runs-on: ubuntu-latest
strategy:
fail-fast: false # ✅ Ensures all combinations run even if one fails
matrix:
test-suite-name: [smokeTestSuite.xml, regressionTestSuite.xml, sanityTestSuite.xml]
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 }}