-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 1.12 KB
/
tests.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: Tests
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Assemble release
run: ./gradlew assembleRelease
- name: Run checks
if: success() || failure()
run: ./gradlew check
- name: Run Detekt
if: success() || failure()
run: ./gradlew detekt
- name: Run Lint
if: success() || failure()
run: ./gradlew lint
- name: Upload Detekt results
uses: github/codeql-action/upload-sarif@v2
if: success() || failure()
with:
sarif_file: build/reports/detekt/detekt-report.sarif
category: detekt
- name: Upload Lint results
uses: github/codeql-action/upload-sarif@v2
if: success() || failure()
with:
sarif_file: app/build/reports/lint-results-debug.sarif
category: lint