-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (49 loc) · 1.72 KB
/
gradle_test.yaml
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
56
# name: Test
# on:
# pull_request:
# branches:
# - "master"
# jobs:
# build:
# runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: ./backend
# steps:
# - uses: actions/checkout@v2
# - name: Set up JDK 11
# uses: actions/setup-java@v2
# with:
# java-version: '11'
# distribution: 'adopt'
# server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
# settings-path: ${{ github.workspace }} # location for the settings.xml file
# - name: gradle test
# run: |
# export jasypt_password=${{ secrets.JASYPT_PASSWORD }}
# gradle clean test
# - name: Discord Alert Success
# uses: sarisia/actions-status-discord@v1
# if: success()
# with:
# webhook: ${{ secrets.DISCORD_WEBHOOK }}
# description: "🎉 테스트 되었습니다!"
# - name: Discord Alert Failure
# uses: sarisia/actions-status-discord@v1
# if: failure()
# with:
# webhook: ${{ secrets.DISCORD_WEBHOOK }}
# description: "🔥 테스트를 실패하였습니다."
# - name: Publish Unit Test Results
# uses: EnricoMi/publish-unit-test-result-action@v1
# if: ${{ always() }}
# with:
# files: build/test-results/*/.xml
# # 추가
# - name: Cleanup Gradle Cache
# # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# # Restoring these files from a GitHub Actions cache might cause problems for future builds.
# if: ${{ always() }}
# run: |
# rm -f ~/.gradle/caches/modules-2/modules-2.lock
# rm -f ~/.gradle/caches/modules-2/gc.properties