-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (76 loc) · 1.98 KB
/
step.build.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
name: "Build"
on:
workflow_call:
inputs:
runner:
required: true
type: string
os:
required: true
type: string
label:
required: true
type: string
flags:
required: false
type: string
default: "--no-configuration-cache"
java:
required: false
type: string
default: 21
coverage:
required: false
type: boolean
default: true
provenance:
required: false
type: boolean
default: true
push:
required: false
type: boolean
default: false
experimental:
required: false
type: boolean
default: false
secrets:
SONAR_TOKEN:
required: true
CODECOV_TOKEN:
required: true
BUILDLESS_APIKEY:
required: true
env:
CI: "true"
GRADLE_OPTS: -Dorg.gradle.jvmargs="-XX:+UseParallelGC -Xmx3g -XX:MetaspaceSize=512M -XX:MaxMetaspaceSize=512M"
GRADLE_CACHE_LOCAL: true
GRADLE_CACHE_REMOTE: true
GRADLE_CACHE_PUSH: true
GRADLE_CACHE_USERNAME: apikey
GRADLE_CACHE_PASSWORD: ${{ secrets.BUILDLESS_APIKEY }}
CACHE_ENDPOINT: https://gradle.less.build/cache/generic/
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
TEST_EXCEPTIONS: true
permissions:
contents: read
jobs:
build:
uses: elide-dev/build-infra/.github/workflows/jvm.gradle.yml
secrets: inherit
permissions:
contents: "write"
id-token: "write"
checks: "write"
pull-requests: "write"
with:
label: "Compile and Test (${{ inputs.label }})"
runner: ${{ inputs.runner }}
checks: true
coverage: ${{ inputs.coverage }}
provenance: ${{ inputs.provenance }}
jvm: ${{ inputs.java }}
action: "preMerge allTests apiCheck detekt"
flags: "-PVERSION=1.0-SNAPSHOT --scan --no-daemon --warning-mode=none --dependency-verification=lenient -Pci=true ${{ inputs.flags }}"