forked from QuiltMC/quilt-standard-libraries
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (44 loc) · 1.52 KB
/
test.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
39
40
41
42
43
44
45
name: Test
on: [ push, pull_request ]
jobs:
build:
strategy:
matrix:
java: [ 21 ]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: ${{ matrix.java }}
- name: Check Licenses and Generate QMJs
uses: gradle/gradle-build-action@v2
with:
arguments: checkLicenses generateQmj --parallel --stacktrace
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') && !startsWith(github.ref, 'refs/tags/v') }}
- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: build publishToMavenLocal --stacktrace --parallel -Porg.gradle.parallel.threads=4
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') && !startsWith(github.ref, 'refs/tags/v') }}
- run: mkdir run && echo "eula=true" >> run/eula.txt
- name: Run auto-test server
uses: gradle/gradle-build-action@v2
with:
arguments: :runAutoAllTestServer --stacktrace
- uses: actions/upload-artifact@v3
with:
name: Production Mods
path: |
./**/build/libs/
!./build-logic/**
!./**/build/libs/*-javadoc.jar
!./**/build/libs/*-sources.jar
!./**/build/libs/*-testmod.jar
- uses: actions/upload-artifact@v3
with:
name: Test Mods
path: ./**/build/libs/*-testmod.jar