Skip to content

Commit

Permalink
CI Actions 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
asn6878 committed Jun 2, 2024
1 parent d4a709e commit c9aa5c4
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Continous Integeration

on:
pull_request:
branches: [ "main" ]
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

jobs:
test:
runs-on: ubuntu-22.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. 테스트를 위한 빌드 실행
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25
with:
arguments: |
test
env:
SPRING_PROFILES_ACTIVE: test

0 comments on commit c9aa5c4

Please sign in to comment.