-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (36 loc) · 1.24 KB
/
amorgakco-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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