Skip to content

Commit a620cb8

Browse files
authored
Create build.yml
1 parent 1b7ebaf commit a620cb8

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
tests:
11+
name: Build and test
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 5
14+
15+
steps:
16+
- name: Clone Repository
17+
uses: actions/checkout@v4
18+
19+
# - name: Validate Gradle Wrapper
20+
# uses: gradle/actions/wrapper-validation@v3
21+
22+
- name: Setup JDK 17
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: 17
26+
distribution: 'adopt'
27+
# For more info: https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#incompatibility-with-other-caching-mechanisms
28+
# cache: gradle
29+
30+
- name: Setup Gradle
31+
uses: gradle/actions/setup-gradle@v3
32+
with:
33+
validate-wrappers: true
34+
cache-disabled: false
35+
36+
- name: Make sure the `./gradlew` is executable
37+
run: chmod +x ./gradlew
38+
working-directory: ./server
39+
40+
- name: Build & Test with Gradle
41+
run: ./gradlew build --stacktrace
42+
working-directory: ./server

0 commit comments

Comments
 (0)