test & feat: 포인트 도메인 테스트 & 좋아요 기능과 리뷰 조회 기능 성능 개선 및 동시성 제어 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
test: | |
name: CI | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
pull-requests: write | |
steps: | |
- name: 레포지토리를 가져온다 | |
uses: actions/checkout@v4 | |
- name: 자바 17을 설치한다 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Gradle 명령 실행을 위해 권한을 부여한다 | |
run: chmod +x gradlew | |
- name: Gradle 로 테스트를 실행한다 | |
run: ./gradlew test | |
- name: 테스트 결과를 PR 에 반영한다 | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: '**/build/test-results/test/TEST-*.xml' | |
# 테스트 코드를 새로 작성하면 재설정 | |
# - name: Add coverage to PR | |
# id: jacoco | |
# if: always() | |
# uses: madrapps/[email protected] | |
# with: | |
# paths: ${{ github.workspace }}/build/jacoco/jacocoTestReports.xml | |
# token: ${{ secrets.GIT_TOKEN }} | |
# title: Code Coverage |