Skip to content

Fix: 명시적 조인 작성 #2

Fix: 명시적 조인 작성

Fix: 명시적 조인 작성 #2

name: Java CI with Gradle
on:
pull_request:
branches: [ "master" ]
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./back
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Make application-prod.yml
run: |
cd ${{ env.working-directory }}/src/main/resources
touch ./application-prod.yml
echo "${{ secrets.PROPERTIES_PROD }}" > ./application-prod.yml
shell: bash
- name: Grant Execute Permission For Gradlew
run: chmod +x gradlew
working-directory: ${{ env.working-directory }}
- name: Build With Gradle
run: ./gradlew build -x test
working-directory: ${{ env.working-directory }}
- name: Start MySQL
uses: samin/[email protected]
with:
host port: 3305
container port: 3305
mysql database: ${{ secrets.MYSQL_DATABASE }}
mysql user: ${{ secrets.MYSQL_USER }}
mysql password: ${{ secrets.MYSQL_PASSWORD }}