Skip to content

[BE] Gardle, Docker 캐싱을 μœ„ν•œ Feature/#121 test2 #64

[BE] Gardle, Docker 캐싱을 μœ„ν•œ Feature/#121 test2

[BE] Gardle, Docker 캐싱을 μœ„ν•œ Feature/#121 test2 #64

name: backend-pull-request
on:
pull_request:
branches: [ "main", "develop", "feature/#121" ]
paths:
- 'server/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server
steps:
- name: CheckOut
uses: actions/checkout@v4
- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Test with Gradle Wrapper
run: ./gradlew clean build
- name: publish unit test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: server/build/test-results/test/TEST-*.xml
- name: add comments to a pull request
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: server/build/test-results/test/TEST-*.xml