Skip to content

~ 12.2.2 깃허브 액션 스크립트 작성하기, CI - 오류 수정 10 #13

~ 12.2.2 깃허브 액션 스크립트 작성하기, CI - 오류 수정 10

~ 12.2.2 깃허브 액션 스크립트 작성하기, CI - 오류 수정 10 #13

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Set up environment variables
run: |
echo "SPRING_PROFILES_ACTIVE=test" >> $GITHUB_ENV
echo "OAUTH2_CLIENT_ID=${{ secrets.OAUTH2_CLIENT_ID }}" >> $GITHUB_ENV
echo "OAUTH2_CLIENT_SECRET=${{ secrets.OAUTH2_CLIENT_SECRET }}" >> $GITHUB_ENV
echo "OAUTH2_CLIENT_PROVIDER=google" >> $GITHUB_ENV
echo "JWT_SECRET=study-springboot" >> $GITHUB_ENV
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build --warning-mode all