forked from codesquad-members-2023/FoodyMoody-team-06
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (43 loc) · 1.21 KB
/
be-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
37
38
39
40
41
42
43
44
45
46
name: be-ci
on:
pull_request:
branches:
- dev-be
env:
ROOT_PATH: "./be"
jobs:
be-ci:
runs-on: ubuntu-latest
steps:
- name: 레포지토리를 체크아웃한다
uses: actions/checkout@v4
- name: 자바를 설치한다
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '11'
- name: 빌드한다
run: |
chmod +x gradlew
./gradlew build
working-directory: ${{ env.ROOT_PATH }}
be-coverage:
runs-on: ubuntu-latest
steps:
- name: 레포지토리를 체크아웃한다
uses: actions/checkout@v4
- name: 자바를 설치한다
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '11'
- name: 그레이들 래퍼에 실행권한을 부여한다
run: chmod +x gradlew
working-directory: ${{ env.ROOT_PATH }}
- name: 테스트를 실행한다
run: ./gradlew test
working-directory: ${{ env.ROOT_PATH }}
- name: CoverAlls를 실행한다
uses: coverallsapp/github-action@v2
with:
base-path: ./be/build/reports/jacoco/test/jacocoTestReport.xml