feat: 백문백답 삭제 API를 구현한다. #104
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: local CI | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
env: | |
SPRING_PROFILES_ACTIVE: local | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Make application.properties | |
run: | | |
cd ./src/main/resources | |
touch ./application-local.yml | |
- name: Set up MySQL | |
uses: mirromutth/[email protected] | |
with: | |
host port: 3306 | |
container port: 3306 | |
character set server: 'utf8mb4' | |
collation server: 'utf8mb4_general_ci' | |
mysql version: '9.0' | |
mysql database: 'accompany' | |
mysql root password: 1234 | |
- name: Wait for MySQL | |
run: | | |
while ! mysqladmin ping --host=127.0.0.1 -uroot -p1234 --silent; do | |
sleep 1 | |
done | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build and Test | |
run: ./gradlew build -s |