-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 902 Bytes
/
Copy pathbuild.yml
File metadata and controls
42 lines (35 loc) · 902 Bytes
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
on:
push:
branches:
- '*'
tags-ignore:
- 'v*'
pull_request:
env:
JAVA_VERSION: 17
GRADLE_VERSION: 8.8
jobs:
build:
name: Build and Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: ${{ env.GRADLE_VERSION }}
dependency-graph: generate-and-submit
- name: Build with Gradle
run: ./gradlew build test --stacktrace --no-daemon
- name: capture build artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: '**/build/libs/*.jar'