Backport fixed Recipe Remainder API to 1.20.1 #2799
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [17, 21] | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: ${{ matrix.java }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') && !startsWith(github.ref, 'refs/tags/v') }} | |
- name: Check Licenses and Generate QMJs | |
run: ./gradle checkLicenses generateQmj --stacktrace | |
- name: Build | |
run: ./gradle build publishToMavenLocal --stacktrace -Porg.gradle.parallel.threads=4 | |
- run: mkdir run && echo "eula=true" >> run/eula.txt | |
- name: Run auto-test server | |
run: ./gradle :runAutoAllTestServer --stacktrace | |
- uses: actions/upload-artifact@v4 | |
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@v4 | |
with: | |
name: Test Mods | |
path: ./**/build/libs/*-testmod.jar |