-
Notifications
You must be signed in to change notification settings - Fork 268
38 lines (37 loc) · 1.07 KB
/
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
31
32
33
34
35
36
37
38
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java: [11-jdk, 16-jdk, 17-jdk, 21-jdk]
runs-on: ubuntu-22.04
container:
image: eclipse-temurin:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v4
- run: ./gradlew build publishToMavenLocal --stacktrace --warning-mode fail
- uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/
client_test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '17'
- name: Run Auto test Client
uses: modmuss50/xvfb-action@v1
with:
run: ./gradlew :minecraft:minecraft-test:runProductionAutoTestClient --stacktrace --warning-mode=fail
- uses: actions/upload-artifact@v3
if: always()
with:
name: Client Test Screenshots
path: minecraft/minecraft-test/run/screenshots