-
Notifications
You must be signed in to change notification settings - Fork 103
32 lines (27 loc) · 982 Bytes
/
code-cov.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
# This workflow will generate a code coverage report
name: Generate and archive a Jacoco code coverage report
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 18 * * *' # 00:00 in LK time (GMT+5:30)
workflow_dispatch:
jobs:
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
env:
packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }}
working-directory: ./coverage-reports
run: ./gradlew codeCoverageReport --stacktrace -scan --console=plain --no-daemon
- name: Archive Code Coverage Zip
uses: actions/upload-artifact@v2
with:
name: CoverageReport
path: coverage-reports/build/reports/jacoco/codeCoverageReport