Skip to content

[#74] 카카오 Oauth 서비스 및 jwt 토큰 테스트 코드 작성 #89

[#74] 카카오 Oauth 서비스 및 jwt 토큰 테스트 코드 작성

[#74] 카카오 Oauth 서비스 및 jwt 토큰 테스트 코드 작성 #89

Workflow file for this run

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 }}
REDIS_HOST: ${{ secrets.REDIS_HOST }}
REDIS_PORT: ${{ secrets.REDIS_PORT }}
KAKAO_CLIENT_ID: ${{ secrets.KAKAO_CLIENT_ID }}
KAKAO_CLIENT_SECRET: ${{ secrets.KAKAO_CLIENT_SECRET }}
ACCESS_TOKEN_EXPIRATION_TIME: ${{ secrets.ACCESS_TOKEN_EXPIRATION_TIME }}
REFRESH_TOKEN_EXPIRATION_TIME: ${{ secrets.REFRESH_TOKEN_EXPIRATION_TIME }}
REGISTER_TOKEN_EXPIRATION_TIME: ${{ secrets.REGISTER_TOKEN_EXPIRATION_TIME }}
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