Skip to content

[Feature] - PR을 생성 할 때 빌드 및 테스트 하는 CI Workflow 추가 #1

[Feature] - PR을 생성 할 때 빌드 및 테스트 하는 CI Workflow 추가

[Feature] - PR을 생성 할 때 빌드 및 테스트 하는 CI Workflow 추가 #1

Workflow file for this run

name: BE CI
on:
pull_request:
branches: [ production/be, develop/be ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./backend
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test with Gradle
run: ./gradlew build
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ always() }}
with:
files: ./build/test-results/**/*.xml
- name: When test fail, comment on that code
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: ./build/test-results/**/*.xml
token: ${{ github.token }}