Skip to content

[BE] 웹소켓 타이머 연동 완성본 테스트로 push #591

[BE] 웹소켓 타이머 연동 완성본 테스트로 push

[BE] 웹소켓 타이머 연동 완성본 테스트로 push #591

Workflow file for this run

name: Coduo Backend Production Server CI
on:
pull_request:
branches: [ "BE/dev", "BE/test", "production" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-write-only: true
- name: Set up Test MySQL
uses: mirromutth/[email protected]
with:
host port: ${{ secrets.TEST_DB_PORT }}
container port: ${{ secrets.TEST_DB_PORT }}
mysql database: ${{ secrets.TEST_DB_NAME }}
mysql root password: ${{ secrets.TEST_DB_PASSWORD }}
- name: Make test application.yml
run: |
rm -rf ./src/main/resources/application.yml
touch ./src/main/resources/application.yml
echo ${{ secrets.BE_TEST_YML }} | base64 --decode > ./src/main/resources/application.yml
shell: bash
- name: Grant Execute Permission For Gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew bootJar
- name: Running Test Code
run: ./gradlew --info test