-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (36 loc) · 1.03 KB
/
backend-ci.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
38
39
40
41
42
43
44
45
name: backend-ci
on:
pull_request:
branches: [ "main", "dev", "dev-be" ]
paths: 'backend/**'
defaults:
run:
working-directory: backend/bang-ggood
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Write application.yml
env:
APPLICATION_YML: ${{ secrets.APPLICATION_YML }}
APPLICATION_TEST_YML: ${{ secrets.APPLICATION_TEST_YML }}
run: |
echo "${APPLICATION_YML}" > src/main/resources/application.yml
echo "${APPLICATION_TEST_YML}" > src/test/resources/application-test.yml
- name: Build with Gradle
run: ./gradlew clean build