Skip to content

[BE] Github Action workflows CD refactoring #3

[BE] Github Action workflows CD refactoring

[BE] Github Action workflows CD refactoring #3

Workflow file for this run

name: Backend Automatically Build On Pull request
on:
workflow_dispatch:
pull_request:
branches: [ develop ]
paths: backend/**
permissions:
pull-requests: write
checks: write
contents: write
jobs:
build-and-upload:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: gradlew 실행 권한 부여
run: chmod +x gradlew
working-directory: backend
- name: Gradle build 시작
run: ./gradlew clean build
working-directory: backend
- name: 테스트 결과를 PR에 코멘트로 등록합니다
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: 'backend/build/test-results/test/TEST-*.xml'
- name: 테스트 실패 시, 실패한 코드 라인에 Check 코멘트를 등록합니다
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
token: ${{ github.token }}