Merge pull request #52 from Re-4aliens/fix/#42_test_fix #18
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 | |
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 |