Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit fb61a92

Browse files
committed
Split tests.yml workflow into master and feature tests.
1 parent 9d8f47a commit fb61a92

File tree

2 files changed

+33
-9
lines changed

2 files changed

+33
-9
lines changed

.github/workflows/featureTests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Tests (Feature)
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'feature/**'
8+
paths:
9+
- 'src/**'
10+
- 'pom.xml'
11+
- '.github/workflows/featureTests.yml'
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Set up JDK
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: '11.0.8'
22+
architecture: x64
23+
- name: Run Tests and update Sonar
24+
run: |
25+
mvn clean verify

.github/workflows/tests.yml renamed to .github/workflows/masterTests.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
name: Tests
1+
name: Tests (Master)
22

33
on:
44
workflow_dispatch:
55
push:
6+
branches:
7+
- 'master'
68
paths:
79
- 'src/**'
810
- 'pom.xml'
9-
- '.github/workflows/tests.yml'
11+
- '.github/workflows/masterTests.yml'
1012

1113
jobs:
12-
Run_all_tests:
14+
test:
1315
runs-on: ubuntu-latest
1416
steps:
15-
-
16-
uses: actions/checkout@v1
17-
-
18-
name: Set up JDK
17+
- uses: actions/checkout@v1
18+
- name: Set up JDK
1919
uses: actions/setup-java@v1
2020
with:
2121
java-version: '11.0.8'
2222
architecture: x64
23-
-
24-
name: Run Tests and update Sonar
23+
- name: Run Tests and update Sonar
2524
run: |
2625
mvn clean verify sonar:sonar -s ./settings.xml
2726
env:

0 commit comments

Comments
 (0)