[IDLE-313] 마이북/관심/완독/추천피드/별점/리뷰 별 도서 랭킹 조회 및 리뷰 모아 보기 API 개발 #41
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: 'SonarCloud' | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'book-service/**' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: | |
- develop | |
paths: | |
- 'book-service/**' | |
jobs: | |
build: | |
name: Build and analyze | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
- name: Setup Application Test Yaml | |
uses: microsoft/variable-substitution@v1 | |
with: | |
files: book-service/src/main/resources/application-test.yml | |
env: | |
aladin.api.key : ${{ secrets.ALADIN_API_KEY }} | |
kakao.api.key : ${{ secrets.KAKAO_API_KEY }} | |
- name: Setup Bootstrap Yaml | |
uses: microsoft/variable-substitution@v1 | |
with: | |
files: book-service/src/main/resources/bootstrap.yml | |
env: | |
spring.profiles.active: test | |
- name: Cache SonarCloud packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Build and analyze | |
working-directory: book-service | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
run: ./gradlew build sonar --info |