-
Notifications
You must be signed in to change notification settings - Fork 223
65 lines (59 loc) · 1.92 KB
/
Copy pathbuild.yaml
File metadata and controls
65 lines (59 loc) · 1.92 KB
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
run-name: Build artifact for ${{ inputs.crypto-type }} ${{ inputs.java-version }}
permissions:
# This is required for requesting the OIDC token
id-token: write
checks: write
pull-requests: write
on:
workflow_call:
inputs:
java-version:
type: string
required: true
server-tag:
type: string
required: false
default: "latest"
description: "Server docker image tag"
run-tests:
type: boolean
required: false
default: false
description: Spin up aerospike enterprise server and run tests
crypto-type:
type: string
required: true
server-container-repo:
type: string
required: true
secrets:
JFROG_OIDC_PROVIDER:
required: true
JFROG_OIDC_AUDIENCE:
required: true
jobs:
build:
runs-on: ${{ vars.BUILD_CONTAINER_DISTRO_VERSION }}
steps:
- uses: actions/checkout@v4 # brings versions.json into the workspace
with:
ref: ${{ github.ref }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: ${{ vars.JAVA_PROVIDER }} # See 'Supported distributions' for available options
java-version: ${{ inputs.java-version }}
- name: Build and test
uses: ./.github/actions/build-and-test
with:
crypto-type: ${{ inputs.crypto-type }}
server-tag: ${{ inputs.server-tag }}
server-container-repo: ${{ inputs.server-container-repo }}
oidc-provider: ${{ secrets.JFROG_OIDC_PROVIDER }}
oidc-audience: ${{ secrets.JFROG_OIDC_AUDIENCE }}
- name: Publish Test Results
if: ${{ always() && inputs.run-tests }}
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: test/target/surefire-reports/*.xml
check_name: "Test Results (${{ inputs.crypto-type }} / ${{ inputs.server-tag }})"