-
Notifications
You must be signed in to change notification settings - Fork 500
47 lines (46 loc) · 1.2 KB
/
build_test.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
47
name: Build/Test
on:
# Trigger on every pull request
pull_request:
# This is reused in deploy_snapshot.yml
workflow_call:
jobs:
detekt:
runs-on: ubuntu-latest
steps:
- name: Checkout mavericks
uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Detekt
run: "./gradlew detekt -PCI=true"
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout mavericks
uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Lint
run: "./gradlew lintRelease"
test-coverage:
runs-on: ubuntu-latest
needs: [detekt, lint]
steps:
- name: Checkout mavericks
uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Unit Tests
run: "./gradlew testReleaseUnitTest"
- name: Code Coverage
run: "./gradlew jacocoFullReport"
- name: Report coverage
if: ${{ success() }}
run: "bash <(curl -s https://codecov.io/bash)"