-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (44 loc) ยท 1.48 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
48
49
50
51
52
53
54
55
name: Backend CI For Test Validation
on:
workflow_dispatch:
pull_request:
branches: [ main, develop-BE ]
paths: backend/**
permissions:
pull-requests: write
checks: write
contents: write
jobs:
build-and-comment:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_ACCESS_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: ํ
์คํธ ํ๊ฒฝ๋ณ์ ์ค์
run: |
echo "TEST_JWT_SECRET_KEY=${{ secrets.TEST_JWT_SECRET_KEY }}" >> $GITHUB_ENV
echo "TEST_JWT_EXPIRE_LENGTH=${{ secrets.TEST_JWT_EXPIRE_LENGTH }}" >> $GITHUB_ENV
- 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 }}