fix/#66 #89
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: AmorGakCo CI | |
on: | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./main | |
permissions: write-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Apply Environment Variables | |
run: | | |
echo "${{ secrets.APPLICATION_JWT }}" > src/test/resources/application-jwt.yml | |
echo "${{ secrets.APPLICATION_OAUTH2 }}" > src/test/resources/application-oauth2.yml | |
echo "${{ secrets.FCM_SECRET }}" | base64 -d > src/test/resources/fcm-secret.json | |
echo "${{ secrets.APPLICATION_NOTIFICATION }}" > src/test/resources/application-notification.yml | |
- run: chmod +x gradlew | |
- run: ./gradlew build | |
- name: 테스트 커버리지를 PR에 코멘트에 등록 | |
id: jacoco | |
uses: madrapps/jacoco-report@v1.6.1 | |
with: | |
title: 📝 테스트 커버리지 리포트입니다 | |
paths: ${{ github.workspace }}/main/build/reports/jacoco/test/jacocoTestReport.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 40 | |
min-coverage-changed-files: 40 |