-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (65 loc) · 2.48 KB
/
check.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
name: Check
on:
pull_request:
branches:
- master
jobs:
spotless:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
with:
distribution: temurin
java-version: 17
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Check formatting
run: |
./gradlew spotlessCheck
check:
uses: wetransform/gha-workflows/.github/workflows/gradle-library-check.yml@733faab9b81e9c64de96ae12a251b3b76111a4eb # v3.1.0
with:
java-version: 17
multi-module: true
skip-scan: true
gradle-tasks: '--continue clean check :allure:allureAggreggateResults' # perform all tasks even if tests of one project fail
upload-artifact-path: allure/build/allure-results
upload-artifact-name: allure-results
secrets:
WETF_ARTIFACTORY_USER: ${{ secrets.WETF_ARTIFACTORY_USER }}
WETF_ARTIFACTORY_PASSWORD: ${{ secrets.WETF_ARTIFACTORY_PASSWORD }}
allure:
# https://allurereport.org/docs/integrations-github/
runs-on: ubuntu-latest
if: ${{ failure() && !startsWith(github.head_ref, 'renovate/') }} # only if tests fail, but not for renovate changes
needs: check
concurrency:
group: allure-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Download artifact from build
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: allure-results
path: allure-results
- name: Load test report history
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- name: Build test report
uses: simple-elf/allure-report-action@58e6590adf6d8f196a0d771bf8a00e6921086a62 # v1.9
with:
gh_pages: gh-pages
allure_history: allure-history
allure_results: allure-results
# needs to be adapted because action adds redirect
report_url: https://${{ github.repository_owner }}.github.io/hale-core/pr-preview/pr-${{ github.event.pull_request.number }}
- name: Deploy preview
uses: rossjrw/pr-preview-action@430e3dfc1de8a8ae77e77d862d25676ef9db55d1 # v1.4.8
with:
source-dir: ./allure-history/