chore: ci에서 mysql 사용 테스트 #57
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: [ "be/develop" ] | |
push: | |
branches: [ "be/feat/#50-set-test-environment" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ACTION_TOKEN }} | |
submodules: true | |
- name: Start MySQL | |
uses: samin/[email protected] | |
with: | |
host port: 23306 | |
container port: 23306 | |
mysql database: testDb | |
mysql user: root | |
mysql password: root | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Run Test | |
run: | | |
ps -ef | grep mysql | |
SPRING_PROFILES_ACTIVE=ci ./gradlew clean test | |
working-directory: ./backend/pokerogue |