-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (32 loc) · 985 Bytes
/
pr-test.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
name: pull-request-build
on:
pull_request:
branches:
- develop-backend
jobs:
build:
runs-on: ubuntu-24.04
defaults:
run:
shell: bash
working-directory: ./backend
steps:
- name: 레포지토리 체크아웃
uses: actions/checkout@v4
- name: JDK 17을 설치
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
- name: Firebase 파일 이동
run: |
mkdir -p src/main/resources/firebase
echo ${{ secrets.BACKEND_FIREBASE_JSON }} > src/main/resources/firebase/serviceAccountKey.json
- name: Apple Auth Key 파일 이동
run: |
mkdir -p src/main/resources/auth
printf "%s" "${{ secrets.APPLE_AUTH_KEY }}" > src/main/resources/auth/AuthKey.p8
- name: gradlew 권한 부여
run: chmod +x ./gradlew
- name: Gradle 빌드
run: ./gradlew clean build