응답 헤더에 hostname 변수 추가 #679
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: | |
- dev/be | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 체크아웃 | |
uses: actions/checkout@v4 | |
- name: MySQL 시작 | |
uses: mirromutth/[email protected] | |
with: | |
host port: ${{ secrets.MYSQL_HOST_PORT }} | |
container port: ${{ secrets.MYSQL_CONTAINER_PORT }} | |
mysql version: ${{ secrets.MYSQL_VERSION }} | |
mysql database: ${{ secrets.MYSQL_DATABASE }} | |
mysql root password: ${{ secrets.MYSQL_PASSWORD }} | |
- name: gradle 캐싱 | |
uses: gradle/actions/setup-gradle@v4 | |
- name: JDK 17 설정 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: 환경변수 주입 | |
run: ${{ secrets.APPLICATION_YML }} | |
working-directory: ./backend/src/test/resources | |
- name: 테스트 코드 실행 | |
run: ./gradlew test | |
working-directory: ./backend |