Skip to content

[Feature] - 프로덕션 모니터링 구축 #357

[Feature] - 프로덕션 모니터링 구축

[Feature] - 프로덕션 모니터링 구축 #357

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: Make keystore file
run: echo "${{secrets.SSL_KEYSTORE}}" | base64 --decode > ./src/main/resources/keystore.p12
- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{runner.os}}-gradle-${{hashFiles('**/*.gradle*', '**/gradle-wrapper.properties')}}
restore-keys: |
${{runner.os}}-gradle-
- 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@v2
if: ${{ always() }}
with:
files: ${{ github.workspace }}/backend/build/test-results/**/*.xml
seconds_between_github_reads: 1.0
seconds_between_github_writes: 3.0
secondary_rate_limit_wait_seconds: 90.0
- name: When test fail, comment on that code
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: ${{ github.workspace }}/backend/build/test-results/**/*.xml
token: ${{ github.token }}