feat: OAuth2를 이용한 kakao, google 소셜로그인 구현 #20
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: Java CI with Gradle | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
# 체크아웃 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup application.properties | |
run: | | |
touch ./src/main/resources/application.properties | |
echo "${{ secrets.CI_APPLICATION }}" > ./src/main/resources/application.properties | |
cat ./src/main/resources/application.properties | |
# gradlew 권한 추가 | |
- name: Run chmod to make gradlew executable | |
run: chmod +x ./gradlew | |
# JDK 21 세팅 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
# Gradle test and build | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 | |
- name: Test With Gradle Wrapper | |
run: ./gradlew test | |
- name: Build with Gradle Wrapper | |
run: ./gradlew build | |
# checkstyle 검사 | |
- name: Run java checkstyle | |
uses: nikitasavinov/checkstyle-action@0.6.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: 'github-pr-check' | |
tool_name: 'Checkstyle' | |
checkstyle_config: ./config/naver-checkstyle-rules.xml | |
properties_file: ./config/naver-checkstyle-suppressions.xml |