Github Action Runner를 이용한 백엔드 CD 파이프라인 구축 #9
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: Backend CI | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
build-directory: ./backend | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Start MySQL | |
uses: mirromutth/[email protected] | |
with: | |
host port: 23306 | |
container port: 3306 | |
mysql version: lts | |
mysql database: code_zap | |
mysql root password: woowacourse | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Test with Gradle Wrapper | |
run: ./gradlew test | |
working-directory: ${{ env.build-directory }} |