Skip to content

Commit 201b537

Browse files
authored
Add Github workflow (#4)
1 parent 625d114 commit 201b537

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "build"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
check:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up Java
20+
uses: actions/setup-java@v3
21+
with:
22+
distribution: 'zulu'
23+
java-version: 17
24+
25+
- name: build
26+
uses: gradle/gradle-build-action@v2
27+
with:
28+
arguments: build --full-stacktrace
29+
30+
- name: Upload reports
31+
if: failure()
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: 'reports'
35+
path: '**/build/reports/**'

0 commit comments

Comments
 (0)