-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (31 loc) · 796 Bytes
/
ci.yml
File metadata and controls
34 lines (31 loc) · 796 Bytes
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
name: CI
on:
push:
branches: [ develope ]
pull_request:
branches: [ develope ]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Merge
uses: devmasx/merge-branch@master
with:
from_branch: uat
target_branch: develope
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Run a test
run: |
chmod +x ./gradlew
./gradlew test jacocoTestReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./build/reports/jacoco/test/jacocoTestReport.xml