12
12
jobs :
13
13
build-and-test :
14
14
runs-on : ubuntu-latest
15
- environment :
16
- name : Development
17
- url : https://checkins-develop-tuvcfzotpq-uc.a.run.app/
18
15
steps :
19
- - uses : actions/checkout@v4
16
+ - name : ' π Checkout'
17
+ uses : actions/checkout@v4
20
18
with :
21
- fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
22
- - name : Set up Node LTS
19
+ fetch-depth : 0
20
+ - name : ' π Set up Node LTS'
23
21
uses : actions/setup-node@v4
24
22
with :
25
23
node-version : ' 20'
26
- - name : Set up JDK 21
27
- uses : actions /setup-java@v4
24
+ - name : ' βοΈ Set up GraalVM 21'
25
+ uses :
graalvm /setup-[email protected]
28
26
with :
29
- distribution : ' temurin ' # See 'Supported distributions' for available options
30
- java-version : 21
31
- - name : Cache SonarQube packages
27
+ distribution : ' graalvm '
28
+ java-version : ' 21 '
29
+ - name : ' πͺ£ Cache SonarQube packages'
32
30
uses : actions/cache@v4
33
31
with :
34
32
path : ~/.sonar/cache
35
33
key : ${{ runner.os }}-sonar
36
34
restore-keys : ${{ runner.os }}-sonar
37
- - name : Cache Gradle packages
35
+ - name : ' πͺ£ Cache Gradle packages'
38
36
uses : actions/cache@v4
39
37
with :
40
38
path : ~/.gradle/caches
@@ -45,11 +43,25 @@ jobs:
45
43
- name : ' π³ Gradle run tests'
46
44
uses : gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
47
45
with :
48
- arguments : check
46
+ arguments : check nativeTest
49
47
deploy :
50
48
runs-on : ubuntu-latest
51
49
needs : [build-and-test]
52
50
if : github.ref == 'refs/heads/develop' || github.ref == 'feature-2532/graal'
53
51
steps :
54
52
- name : ' π Deploy Image to Cloud Run'
55
53
uses : ' ./.github/workflows/gradle-deploy-develop.yml'
54
+ deploy-native :
55
+ runs-on : ubuntu-latest
56
+ needs : [build-and-test]
57
+ if : github.ref == 'refs/heads/develop' || github.ref == 'feature-2532/graal'
58
+ steps :
59
+ - name : ' π Deploy Native Image to Cloud Run'
60
+ uses : ' ./.github/workflows/gradle-deploy-native-develop.yml'
61
+ finalize :
62
+ runs-on : ubuntu-latest
63
+ needs : [deploy, deploy-native]
64
+ if : always() && !failure() && !cancelled()
65
+ steps :
66
+ - name : ' β
Finalize Deployment'
67
+ run : echo "Deployment of develop branch completed successfully."
0 commit comments