-
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (56 loc) · 1.86 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push
concurrency:
group: ${{ github.ref == 'refs/heads/main' && format('ci-main-{0}', github.sha) || format('ci-{0}', github.ref) }}
cancel-in-progress: true
jobs:
validate:
name: "🦺 Validation"
uses: TWiStErRob/github-workflows/.github/workflows/validate.yml@19333c04e57739ec6074b09c6ca09c225c94dc09 # v1
build:
name: "🔨 Build & Verify"
runs-on: ubuntu-latest
timeout-minutes: 10
needs:
- validate
permissions:
# EnricoMi/publish-unit-test-result-action
checks: write
steps:
- name: "Checkout ${{ github.ref }} branch in ${{ github.repository }} repository."
uses: actions/checkout@v4
- name: "Build & Verify project using Gradle."
id: gradle
run: >
./gradlew
--no-daemon
--no-build-cache
--stacktrace
--continue
-Pnet.twisterrob.detekt.build.compile-test-snippets=true
build
detektMain
detektTest
- name: "Upload 'Unit Test Results' artifact."
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: 'Unit Test Results'
path: ${{ github.workspace }}/**/build/reports/tests/*/
- name: "Publish 'Unit Results' check suite."
if: success() || failure()
uses: EnricoMi/publish-unit-test-result-action@v2
with:
check_name: '🔔 Test: Unit Results'
comment_mode: off
report_individual_runs: true
test_changes_limit: 0
junit_files: ${{ github.workspace }}/**/build/test-results/*/TEST-*.xml
- name: "Upload 'Detekt Results' artifact."
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: 'Detekt Results'
path: |
${{ github.workspace }}/**/build/reports/detekt/detekt.*