-
-
Notifications
You must be signed in to change notification settings - Fork 17
30 lines (30 loc) · 889 Bytes
/
build.yml
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
name: Build
on: [ push, pull_request, merge_group ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '17'
- uses: gradle/wrapper-validation-action@v1
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-home-cache-cleanup: true
gradle-home-cache-excludes: |
gradle.properties
- name: Run Auto test Client
uses: modmuss50/xvfb-action@v1
with:
run: ./gradlew runTestModClient
- run: ./gradlew clean build --stacktrace
- run: ./gradlew publishToMavenLocal --stacktrace
- uses: actions/upload-artifact@v3
with:
name: Maven Local
path: ~/.m2/repository