-
Notifications
You must be signed in to change notification settings - Fork 530
37 lines (33 loc) · 894 Bytes
/
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
name: Unit test(MacOS)
on:
push:
branches:
- master
pull_request:
merge_group:
jobs:
test:
runs-on: macos-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: oracle
java-version: 17
- name: Run unit tests
run: sh ./build.sh
- name: Upload Test Reports Folder
uses: actions/upload-artifact@v2
if: ${{ always() }} # IMPORTANT: Upload reports regardless of status
with:
name: ut-reports
path: app/build/reports/tests
- name: Upload coverage reports to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/macos/codecov
chmod +x codecov
./codecov