Skip to content

Commit

Permalink
feat: ci workflow 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlee1703 committed Mar 25, 2024
1 parent 23ecc67 commit 9358641
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Continuous Integration

on:
pull_request:
branches: [ "dev" ]
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Test scenario tags'
required: false
type: boolean
environment:
description: 'Environment to run tests against'
type: environment
required: false

permissions:
contents: read

jobs:
testing:
runs-on: ubuntu-20.04

steps:
# 1. Compare branch 코드 내려 받기
- name: Checkout PR
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

# 2. 자바 환경 설정
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

# 3. Testing을 위한 MySQL 설정
- name: Setup MySQL
uses: mirromutth/[email protected]
with:
mysql database: ${{ secrets.MYSQL_TEST_DATABASE }}
mysql user: ${{ secrets.MYSQL_TEST_USER }}
mysql password: ${{ secrets.MYSQL_TEST_PASSWORD }}

# 4. Gradle Test 실행
- name: Test with Gradle
run: ./gradlew --info test
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 9358641

Please sign in to comment.