-
Notifications
You must be signed in to change notification settings - Fork 9
95 lines (88 loc) · 2.64 KB
/
gradle.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Master Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
continue-on-error: ${{ matrix.experimental }}
name: Build on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
experimental: [false]
include:
- os: windows-latest
experimental: true
- os: macos-latest
experimental: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- name: Setup JVM
uses: actions/setup-java@v3
with:
distribution : zulu
java-version: |
19
17
- name : Setup Gradle
uses : gradle/gradle-build-action@v2
- run: ./gradlew build
# - name: list build directory
# if: ${{ always() }}
# run: |
# ls build
- uses: mikepenz/action-junit-report@v4
if: ${{ always() }}
name: Publish Test Report
with:
check_name: Test Report - ${{ matrix.os }}
report_paths: '**/build/test-results/test/TEST-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
# publish-test-results:
# name: "Publish Unit Tests Results"
# needs: gradle
# runs-on: ubuntu-latest
# # the build-and-test job might be skipped, we don't need to run this job then
# if: success() || failure()
#
# steps:
# - name: Download Artifacts
# uses: actions/download-artifact@v2
# with:
# path: artifacts
#
# - name: Publish Unit Test Results
# uses: EnricoMi/[email protected]
# with:
# check_name: Unit Test Results
# github_token: ${{ secrets.GITHUB_TOKEN }}
# files: pytest.xml
publish:
name: Publish snapshots
runs-on: ubuntu-latest
needs: build
if: success() && github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gradle/wrapper-validation-action@v1
- name: Setup JVM
uses: actions/setup-java@v3
with:
distribution : zulu
java-version: |
19
17
- name : Setup Gradle
uses : gradle/gradle-build-action@v2
- run: ./gradlew snapshot -Ppublish.central=true
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.ORG_GRADLE_PROJECT_OSSRHUSERNAME }}
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.ORG_GRADLE_PROJECT_OSSRHPASSWORD }}