Skip to content

Github Action Runner를 이용한 백엔드 CD 파이프라인 구축 #9

Github Action Runner를 이용한 백엔드 CD 파이프라인 구축

Github Action Runner를 이용한 백엔드 CD 파이프라인 구축 #9

Workflow file for this run

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 }}