-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 850 Bytes
/
Copy pathprojectbuild.yml
File metadata and controls
40 lines (32 loc) · 850 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
name: gradleCI
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: self-hosted
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- name: setup jdk
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'corretto'
cache: gradle
- name: Build the project
run: ./gradlew build
# Note that running test task will also perform code coverage
- name: Run Tests
run: ./gradlew test
- name: Produce JavaDoc
run: ./gradlew javadoc
- uses: actions/upload-artifact@v3
with:
name: Reports
path: build/reports/
- uses: actions/upload-artifact@v3
with:
name: JavaDocs
path: build/docs