Skip to content

chore: ci에서 mysql 사용 테스트 #57

chore: ci에서 mysql 사용 테스트

chore: ci에서 mysql 사용 테스트 #57

Workflow file for this run

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