-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (37 loc) ยท 1.12 KB
/
be-pull-request.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
name: Backend Automatically Build On Pull request
on:
workflow_dispatch:
pull_request:
branches: [ main, develop ]
paths: backend/**
permissions:
pull-requests: write
checks: write
contents: write
jobs:
build-and-upload:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: gradlew ์คํ ๊ถํ ๋ถ์ฌ
run: chmod +x gradlew
working-directory: backend
- name: Gradle build ์์
run: ./gradlew clean build
working-directory: backend
- name: ํ
์คํธ ๊ฒฐ๊ณผ๋ฅผ PR์ ์ฝ๋ฉํธ๋ก ๋ฑ๋กํฉ๋๋ค
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: 'backend/build/test-results/test/TEST-*.xml'
- name: ํ
์คํธ ์คํจ ์, ์คํจํ ์ฝ๋ ๋ผ์ธ์ Check ์ฝ๋ฉํธ๋ฅผ ๋ฑ๋กํฉ๋๋ค
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
token: ${{ github.token }}