Skip to content

Commit d0b3e9e

Browse files
svenzikmrts
authored andcommitted
build: install latest library during example build
WE2-1175 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
1 parent c30122f commit d0b3e9e

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ on:
1010
- 'example/**'
1111
- '.github/workflows/*example*'
1212

13-
defaults:
14-
run:
15-
working-directory: ./example
16-
1713
jobs:
1814
build:
1915
runs-on: ubuntu-latest
@@ -33,9 +29,9 @@ jobs:
3329
key: ${{ runner.os }}-m2-v17-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/pom.xml') }}
3430
restore-keys: ${{ runner.os }}-m2-v17-${{ secrets.CACHE_VERSION }}
3531

36-
- name: Build
37-
run: mvn --batch-mode compile
38-
39-
- name: Test and package
40-
run: mvn --batch-mode package
32+
- name: Install library
33+
run: mvn -B -ntp install
4134

35+
- name: Build example project
36+
working-directory: ./example
37+
run: mvn -B -ntp package

0 commit comments

Comments
 (0)