-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.13 KB
/
build-test.yaml
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
38
39
40
41
42
43
44
name: Feature Branch CI
on:
push:
branches:
- feature/**
- fix
- hotfix
pull_request:
branches:
- main
- develop
- fix
- hotfix
jobs:
build-and-package:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Create and configure application.yml
run: |
mkdir -p baebae-BE/src/main/resources
mkdir -p baebae-BE/src/test/resources
echo "${{ secrets.APPLICATION_YML }}" > baebae-BE/src/main/resources/application.yml
echo "${{ secrets.APPLICATION_DEPLOY_YML }}" > baebae-BE/src/main/resources/application-deploy.yml
echo "${{ secrets.TEST_APPLICATION_YML }}" > baebae-BE/src/test/resources/application.yml
echo "${{ secrets.APPLICATION_TEST_YML }}" > baebae-BE/src/test/resources/application-test.yml
- name: Build with Gradle
run: |
cd baebae-BE
chmod +x ./gradlew
./gradlew build