Skip to content

Chore: edit github action pipeline, add naver properties #16

Chore: edit github action pipeline, add naver properties

Chore: edit github action pipeline, add naver properties #16

Workflow file for this run

name: CI TEST
on:
push:
branches-ignore:
- main
- develop
jobs:
CI:
name: Continuous Integration
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup MySQL
uses: mirromutth/[email protected]
with:
host port: 3308
mysql database: 'TESTDB'
mysql user: 'fontory'
mysql password: 'fontoryPW'
- name: Setup Redis
uses: supercharge/[email protected]
with:
redis-version: 6
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Get short SHA
id: slug
run: echo "sha7=$(echo ${GITHUB_SHA} | cut -c1-7)" >> $GITHUB_OUTPUT
- name: Generate application.properties
run: |
echo "jwt.secretKey=${{ secrets.JWT_SECRETKEY }}" >> ./src/main/resources/application-oauth2.properties
echo "spring.security.oauth2.client.registration.google.client-id=${{ secrets.OAUTH2_GOOGLE_CLIENT_ID }}" >> ./src/main/resources/application-oauth2.properties
echo "spring.security.oauth2.client.registration.google.client-secret=${{ secrets.OAUTH2_GOOGLE_CLIENT_SECRET }}" >> ./src/main/resources/application-oauth2.properties
echo "spring.security.oauth2.client.registration.google.scope=${{ secrets.OAUTH2_GOOGLE_SCOPE }}" >> ./src/main/resources/application-oauth2.properties
echo ${{ secrets.OAUTH2_NAVER_PROPERTIES }} >> ./src/main/resources/application-oauth2.properties
- name: Build with Gradle Wrapper
run: ./gradlew build