Skip to content

Commit 40d0654

Browse files
committed
Unify scripts
1 parent 3279b14 commit 40d0654

File tree

3 files changed

+26
-71
lines changed

3 files changed

+26
-71
lines changed

β€Ž.github/workflows/gradle-build-develop.yml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,27 @@ on:
1212
jobs:
1313
build-and-test:
1414
runs-on: ubuntu-latest
15-
environment:
16-
name: Development
17-
url: https://checkins-develop-tuvcfzotpq-uc.a.run.app/
1815
steps:
19-
- uses: actions/checkout@v4
16+
- name: 'πŸ›’ Checkout'
17+
uses: actions/checkout@v4
2018
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'
2321
uses: actions/setup-node@v4
2422
with:
2523
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]
2826
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'
3230
uses: actions/cache@v4
3331
with:
3432
path: ~/.sonar/cache
3533
key: ${{ runner.os }}-sonar
3634
restore-keys: ${{ runner.os }}-sonar
37-
- name: Cache Gradle packages
35+
- name: 'πŸͺ£ Cache Gradle packages'
3836
uses: actions/cache@v4
3937
with:
4038
path: ~/.gradle/caches
@@ -45,11 +43,25 @@ jobs:
4543
- name: '🐳 Gradle run tests'
4644
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
4745
with:
48-
arguments: check
46+
arguments: check nativeTest
4947
deploy:
5048
runs-on: ubuntu-latest
5149
needs: [build-and-test]
5250
if: github.ref == 'refs/heads/develop' || github.ref == 'feature-2532/graal'
5351
steps:
5452
- name: 'πŸš€ Deploy Image to Cloud Run'
5553
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."

β€Ž.github/workflows/gradle-build-native-develop.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

β€Ž.github/workflows/gradle-deploy-develop.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ jobs:
4949
service_account_key: ${{ secrets.RUN_SA_KEY }}
5050
project_id: ${{ secrets.RUN_PROJECT }}
5151
- name: '🐳 Auth Configure Docker'
52-
run: |-
53-
gcloud --quiet auth configure-docker
52+
run: gcloud --quiet auth configure-docker
5453
- name: '🐳 Build the Docker image'
5554
run: |-
5655
./gradlew assemble

0 commit comments

Comments
Β (0)