-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 963 Bytes
/
github-actions.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
name: Build and test
on:
push:
branches:
- 'main'
pull_request: {}
# allow manual execution
workflow_dispatch: {}
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Run static analysis
run: ./gradlew detekt
- name: Archive detekt reports
uses: actions/upload-artifact@v3
with:
name: detekt-reports
path: build/reports/detekt
- name: Build
run: ./gradlew build -x test
- name: Run tests
run: ./gradlew test
- name: Archive test reports
uses: actions/upload-artifact@v3
with:
name: test-reports
path: |
build/reports/jacoco
build/reports/tests