Skip to content

[BE] feature/#264 ํ† ํ”ฝ์— ๋Œ€ํ•œ ์ฆ๊ฒจ์ฐพ๊ธฐ API #62

[BE] feature/#264 ํ† ํ”ฝ์— ๋Œ€ํ•œ ์ฆ๊ฒจ์ฐพ๊ธฐ API

[BE] feature/#264 ํ† ํ”ฝ์— ๋Œ€ํ•œ ์ฆ๊ฒจ์ฐพ๊ธฐ API #62

Workflow file for this run

name: Backend CI For Test Validation
on:
workflow_dispatch:
pull_request:
branches: [ main, develop ]
paths: backend/**
permissions:
pull-requests: write
checks: write
contents: write
jobs:
build-and-comment:
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: ํ…Œ์ŠคํŠธ ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์„ค์ •
run: |
echo "TEST_JWT_SECRET_KEY=${{ secrets.TEST_JWT_SECRET_KEY }}" >> $GITHUB_ENV
echo "TEST_JWT_EXPIRE_LENGTH=${{ secrets.TEST_JWT_EXPIRE_LENGTH }}" >> $GITHUB_ENV
- 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 }}