Skip to content

Refactor/#70

Refactor/#70 #90

Workflow file for this run

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