-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 974 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build
on:
pull_request:
branches: [ "develop" ]
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- run: touch ./src/main/resources/application-secret.yaml
- run: echo "${{ secrets.DB_SECRET }}" > ./src/main/resources/application-secret.yaml
- run: cat ./src/main/resources/application-secret.yaml
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash
- name: Build and no Test
run: ./gradlew build -x test