-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (46 loc) · 1.41 KB
/
backend-pull-request-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
46
47
48
49
50
51
52
53
54
55
name: backend-ci
on:
pull_request:
branches: [ "develop" ]
paths:
- 'backend/**'
defaults:
run:
working-directory: ./backend
jobs:
build:
runs-on: friendogly-dev-new
permissions:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "corretto"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: create-json
uses: jsdaniell/[email protected]
with:
name: "firebase-friendogly-private-key.json"
json: ${{ secrets.FIREBASE_FRIENDOGLY_PRIVATE_KEY }}
dir: "./backend/src/main/resources/"
- name: Build with Gradle Wrapper
run: ./gradlew build
- name: 테스트 결과를 PR에 코멘트로 등록합니다
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
./backend/build/test-results/**/*.xml
./backend/build/test-results/**/*.trx
./backend/build/test-results/**/*.json
- name: 실패 테스트결과의 원인을 Report 합니다
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: './backend/build/test-results/test/TEST-*.xml'
token: ${{ github.token }}