Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI build-test 추가 #10

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: PLUV Backend Build Test

on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- main

permissions: write-all

jobs:
build:
name: Build with Gradle
runs-on: ubuntu-22.04

steps:
- name: 해당 브랜치로 체크아웃
uses: actions/checkout@v2

- name: JDK 17로 설정
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'temurin'

- name: Give permission for Gradle
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew clean build

- name: 테스트 결과를 PR 코멘트에 등록
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: '**/build/test-results/test/TEST-*.xml'
Loading