refactor(FcmSender) : false인 상대에게는 fcm이 전송되지 않도록 수정 #149
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
mongo: | |
image: mongo:latest | |
ports: | |
- 27017:27017 | |
options: --health-cmd="mongosh --eval 'db.adminCommand(\"ping\")'" --health-interval=10s --health-timeout=5s --health-retries=5 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: JDK 17 설치 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: secret 설정 파일(yml) 추가 | |
run: | | |
cd ./src/main/resources | |
touch ./application-secret.yml | |
echo "${{ secrets.APPLICATION_SECRET }}" > ./application-secret.yml | |
ls -a . | |
- name: firebase_service_key.json 구성 | |
run: | | |
cd ./src/main/resources | |
touch ./firebase_service_key.json | |
echo "${{ secrets.FCM_KEY }}" > ./firebase_service_key.json | |
ls -a . | |
- name: firebase_service_key.json 파일 생성 | |
id: create-json | |
uses: jsdaniell/[email protected] | |
with: | |
name: "firebase_service_key.json" | |
json: ${{ secrets.FCM_KEY }} | |
- name: JSON 파일 이동 및 로그 확인 | |
run: | | |
mv ./firebase_service_key.json ./src/main/resources/firebase_service_key.json | |
cd ./src/main/resources | |
ls -a . | |
- name: Gradle 권한 허용 | |
run: chmod +x gradlew | |
- name: PR 및 PUSH 전, 테스트 확인 | |
run: ./gradlew test | |
env: | |
MONGO_HOST: localhost | |
MONGO_PORT: 27017 |