-
-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (74 loc) · 2.15 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
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
name: ci
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- ./**.md
- ./**.txt
- ./**.json
- ./.gitignore
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-XX:MaxMetaspaceSize=2g"
JDK_VERSION: 19
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
permissions:
security-events: write
contents: write
packages: write
jobs:
test:
uses: ./.github/workflows/test.yml
secrets: inherit
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_VERSION }}
distribution: temurin
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- uses: gradle/gradle-build-action@v2
- name: Gradle build
run: ./gradlew build --scan
- name: Publish snapshots on GPR
run: ./gradlew publishAllPublicationsToGitHubPackagesRepository
- name: Publish snapshots on Sonatype
run: ./gradlew publishToSonatype
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }}
- name: Gradle dependency submission
uses: mikepenz/gradle-dependency-submission@main
with:
gradle-build-module: |-
:build-logic
:kipher-coverage
:kipher-core
:kipher-symmetric
:kipher-digest
:kipher-mac
gradle-build-configuration: |-
compileClasspath
- name: Upload SARIF results file
if: always()
uses: github/codeql-action/upload-sarif@main
with:
sarif_file: build/reports/detekt/merge.sarif
- name: Trunk Check
if: always()
uses: trunk-io/trunk-action@v1
with:
check-mode: all
trunk-token: ${{ secrets.TRUNK_TOKEN }}
arguments: --replace