Skip to content

Commit

Permalink
feat: main브런치로 PR요청이 들어오면 자동으로 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
hellomatia authored May 21, 2024
1 parent b5d0e6b commit 899f4a2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
pull_request:
branches: [ main ]

permissions: write-all

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout 코드
uses: actions/checkout@v3

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

- name: Gradle 빌드 및 테스트
run: chmod +x ./gradlew && ./gradlew build

- name: 테스트 결과를 댓글로 추가
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ always() }}
with:
files: build/test-results/**/*.xml

0 comments on commit 899f4a2

Please sign in to comment.