Skip to content

Commit

Permalink
[fix] #22 add CI workflows to check test passed
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdwns414 committed May 19, 2024
1 parent d570f39 commit 0cf32d3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
branches: [ "develop" ]

jobs:
build:
runs-on: ubuntu-latest

services:
mysql:
image: mysql:8.3
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: testdb
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping --silent"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

- name: create secret config file
run: |
cd src/main/resources
echo "${{ secrets.APPLICATION_TEST }}" > ./application.yml
- name: build with gradle
run: |
chmod +x gradlew
./gradlew clean build

0 comments on commit 0cf32d3

Please sign in to comment.