Skip to content

Update deploy-test.yml #612

Update deploy-test.yml

Update deploy-test.yml #612

Workflow file for this run

name: ✨ YELL:O Build
on:
pull_request:
branches:
- main
- staging
- develop
permissions:
checks: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 👉 JDK 17 zulu 버전을 세팅합니다.
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- name: 🐘 Gradle에 권한을 부여합니다.
run: chmod +x gradlew
shell: bash
## 시크릿 키 설정
- name: 🔐 application.yml 등 환경 변수를 세팅합니다.
run: |
cd ./src/main/resources
touch ./application.yml
echo "$APPLICATION" > ./application.yml
env:
APPLICATION: ${{ secrets.APPLICATION }}
shell: bash
- name: 🐘 Gradle로 빌드 실행
run: ./gradlew build
- name: 💬 테스트 결과를 코멘트로 등록합니다.
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: '**/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 }}
- name: 💡 배포 상태를 Slack을 통해 전송합니다.
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: general
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://github.com/rtCamp.png?size=48
SLACK_MESSAGE: 빌드에 ${{ job.status }} 했습니다.
SLACK_TITLE: 📦 YELL:O 빌드 결과 📦
SLACK_USERNAME: Notification-Bot
SLACK_WEBHOOK: ${{ secrets.SLACK_URL }}
if: always()