[#64] 추천 생성/ 취소 리팩토링, 북마크 기준 랭킹 리팩토링 #76
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: | |
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: 'temurin' | |
- name: Build and analyze | |
env: | |
cloud.aws.credentials.accessKey: ${{ secrets.AWS_ACCESS_KEY }} | |
cloud.aws.credentials.secretKey: ${{ secrets.AWS_SECRET_KEY }} | |
cloud.aws.region.static: ap-northeast-2 | |
S3_BUCKET: ${{ secrets.S3_BUCKET }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
run: | | |
export SPRING_CLOUD_AWS_CREDENTIALS_ACCESSKEY=$AWS_ACCESS_KEY | |
export SPRING_CLOUD_AWS_CREDENTIALS_SECRETKEY=$AWS_SECRET_KEY | |
export SPRING_CLOUD_AWS_REGION_STATIC=$AWS_REGION | |
export S3_BUCKET=$S3_BUCKET | |
export JWT_SECRET=$JWT_SECRET | |
./gradlew build sonar --info | |
- 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 | |