forked from JeffersonLab/clara-java
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1007 Bytes
/
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
# SPDX-FileCopyrightText: © The Clara Framework Authors
#
# SPDX-License-Identifier: MIT-0
name: build
on:
push:
branches:
- '**'
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Prepare environment
run: |
echo "CLARA_HOME=$HOME/clara-java" >> $GITHUB_ENV
echo "CLARA_USER_DATA=$HOME/clara-java" >> $GITHUB_ENV
echo "CLARA_CONNECTION_TIMEOUT=5000" >> $GITHUB_ENV
echo "CLARA_SUBSCRIPTION_TIMEOUT=5000" >> $GITHUB_ENV
echo "CLARA_POST_CONNECTION_SLEEP=250" >> $GITHUB_ENV
echo "CLARA_POST_SUBSCRIPTION_SLEEP=250" >> $GITHUB_ENV
- name: Build with Gradle
run: |
./gradlew --warning-mode=all -PciMode=true build codenarc spotbugs
./gradlew --warning-mode=all integration