Skip to content

Commit 151ab4a

Browse files
Set up different jobs for the workflows
1 parent 3884d9f commit 151ab4a

File tree

4 files changed

+29
-117
lines changed

4 files changed

+29
-117
lines changed

.github/workflows/build-and-unit-tests.yml

-62
This file was deleted.

.github/workflows/functional-tests.yml

-52
This file was deleted.

.github/workflows/service-discovery-ci.yml

+27-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and test
1+
name: CI Workflow
22

33
on:
44
push:
@@ -32,7 +32,7 @@ on:
3232
- debug
3333

3434
jobs:
35-
build-and-test:
35+
build-and-unit-test:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- name: Checkout code
@@ -55,6 +55,31 @@ jobs:
5555
path: |
5656
sd-app/build/reports/tests/test/**/*
5757
58+
- name: Upload JAR
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: App jar
62+
path: sd-app/build/libs/service-discovery.jar
63+
64+
funcional-tests:
65+
needs: build-and-unit-test
66+
runs-on: ubuntu-latest
67+
steps:
68+
- name: Checkout code
69+
uses: actions/checkout@v4
70+
71+
- name: Set up JDK 21
72+
uses: actions/setup-java@v4
73+
with:
74+
java-version: '21'
75+
distribution: 'temurin'
76+
77+
- name: Download JAR
78+
uses: actions/download-artifact@v4
79+
with:
80+
name: App jar
81+
path: sd-app/build/libs/service-discovery.jar
82+
5883
- name: Start Spring Boot app
5984
run: java -jar sd-app/build/libs/service-discovery.jar &
6085

gradle.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
systemProp.sonar.skipCompile=true
1+
org.gradle.parallel=true
2+
systemProp.sonar.skipCompile=true

0 commit comments

Comments
 (0)