Skip to content

Commit a13c5ca

Browse files
committed
Move example project workflow to parent, add build scripts and sonar
WE2-932 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
1 parent a945f5b commit a13c5ca

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

example/.github/workflows/maven-build.yml renamed to .github/workflows/maven-build-example.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
name: Maven build
1+
name: Maven build example
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
paths:
6+
- 'example/**'
7+
- '.github/workflows/*example*'
8+
pull_request:
9+
paths:
10+
- 'example/**'
11+
- '.github/workflows/*example*'
12+
13+
defaults:
14+
run:
15+
working-directory: ./example
416

517
jobs:
618
build:
@@ -26,3 +38,4 @@ jobs:
2638

2739
- name: Test and package
2840
run: mvn --batch-mode package
41+

.github/workflows/maven-build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Maven build
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'example/**'
7+
- '.github/workflows/*example*'
8+
pull_request:
9+
paths-ignore:
10+
- 'example/**'
11+
- '.github/workflows/*example*'
412

513
jobs:
614
build:

.github/workflows/sonarcloud-analysis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: SonarCloud code analysis
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'example/**'
7+
- '.github/workflows/*example*'
8+
pull_request:
9+
paths-ignore:
10+
- 'example/**'
11+
- '.github/workflows/*example*'
412

513
jobs:
614
analyze:

0 commit comments

Comments
 (0)