Skip to content

YEL-100 [deploy] test ci, 투표 상세 조회 subscribe, 구독시 포인트 두배 #75

YEL-100 [deploy] test ci, 투표 상세 조회 subscribe, 구독시 포인트 두배

YEL-100 [deploy] test ci, 투표 상세 조회 subscribe, 구독시 포인트 두배 #75

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: 📊 YELL:O Test
on:
push:
branches: [ "develop", "staging", "main" ]
pull_request:
branches: [ "develop", "staging", "main" ]
permissions:
contents: read
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 test
- 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()