-
Notifications
You must be signed in to change notification settings - Fork 18
42 lines (42 loc) · 1.54 KB
/
build.yaml
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
name: Build Plugin
on: [ push, pull_request ]
jobs:
gradle-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version-file: gradle/jdk-version.txt
- uses: gradle/actions/setup-gradle@v3
- run: "./gradlew qualityCheck"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}
- run: "./gradlew test"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}
- run: "./gradlew endToEndTest"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}
- run: "./gradlew endToEndTestSlow"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}
- run: "./gradlew cyclonedxBom"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}
- uses: DependencyTrack/gh-upload-sbom@v3
with:
apiKey: ${{ secrets.DEPENDENCYTRACK_APIKEY }}
bomFilename: "gradle/aggregation/build/reports/sbom/bom.xml"
serverHostname: "212.132.95.131:8091"
port: "8091"
protocol: "http"
projectName: "gradle-project-setup-howto"
projectVersion: ${{ github.ref_name }}
autoCreate: true