Skip to content

refactor: ๊ฟ€์กฐํ•ฉ์— ์‚ฌ์šฉ๋œ ์ƒํ’ˆ ์ •๋ณด์— ์ƒํ’ˆ ์ด๋ฏธ์ง€ URL ์ถ”๊ฐ€ #50

refactor: ๊ฟ€์กฐํ•ฉ์— ์‚ฌ์šฉ๋œ ์ƒํ’ˆ ์ •๋ณด์— ์ƒํ’ˆ ์ด๋ฏธ์ง€ URL ์ถ”๊ฐ€

refactor: ๊ฟ€์กฐํ•ฉ์— ์‚ฌ์šฉ๋œ ์ƒํ’ˆ ์ •๋ณด์— ์ƒํ’ˆ ์ด๋ฏธ์ง€ URL ์ถ”๊ฐ€ #50

Workflow file for this run

name: PR Test
on:
pull_request:
branches:
- main
- develop
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
checks: write
pull-requests: write
steps:
- name: Repository ์ฒดํฌ์•„์›ƒ
uses: actions/checkout@v3
- name: JDK 21 ์„ค์ •
uses: actions/setup-java@v3
with:
java-version: 21
distribution: corretto
- name: Gradle ์บ์‹ฑ
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: Gradle ๊ถŒํ•œ ๋ถ€์—ฌ
run: chmod +x gradlew
- name: ํ…Œ์ŠคํŠธ ์‹คํ–‰
run: ./gradlew --info test
- name: ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ PR์— ์ฝ”๋ฉ˜ํŠธ ๋“ฑ๋ก
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: '**/backend/build/test-results/test/TEST-*.xml'
- name: ํ…Œ์ŠคํŠธ ์‹คํŒจ ์‹œ, ์‹คํŒจํ•œ ์ฝ”๋“œ ๋ผ์ธ์— Check ์ฝ”๋ฉ˜ํŠธ๋ฅผ ๋“ฑ๋ก
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/backend/build/test-results/test/TEST-*.xml'
token: ${{ github.token }}
- name: build ์‹คํŒจ ์‹œ Slack์œผ๋กœ ์•Œ๋ฆฝ๋‹ˆ๋‹ค
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: ๋ฐฑ์—”๋“œ ํ…Œ์ŠคํŠธ ์‹คํŒจ ์•Œ๋ฆผ
fields: repo, message, commit, author, action, eventName, ref, workflow, job, took
env:
SLACK_CHANNEL: group-dev
SLACK_COLOR: '#FF2D00'
SLACK_USERNAME: 'Github Action'
SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
SLACK_TITLE: Build Failure - ${{ github.event.pull_request.title }}
SLACK_MESSAGE: PR Url - ${{ github.event.pull_request.url }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_PR_TEST }}
if: failure()