-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (45 loc) · 1.18 KB
/
build-java.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
name: Java
on:
workflow_call:
workflow_dispatch:
pull_request:
paths:
- "java/**"
- "proto/**"
- ".github/workflows/*java*"
- "devops/**"
push:
branches:
- main
paths:
- "java/**"
- "proto/**"
- ".github/workflows/*java*"
- "devops/**"
jobs:
build-and-test-java:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: |
gradle build --scan
shell: pwsh
working-directory: java
env:
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This has github maven package repo permissions
TEST_SERVER_ENDPOINT: ${{ secrets.TEST_SERVER_ENDPOINT }}
TEST_SERVER_PORT: ${{ secrets.TEST_SERVER_PORT }}
TEST_SERVER_USE_TLS: ${{ secrets.TEST_SERVER_USE_TLS }}