Skip to content

feat: 1.21.3 update #40

feat: 1.21.3 update

feat: 1.21.3 update #40

Workflow file for this run

name: Test Template Mod Compiles
on:
push:
pull_request:
jobs:
test:
runs-on: "ubuntu-20.04"
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Deno
uses: denoland/[email protected]
with:
deno-version: "canary"
- name: Initialize template
run: deno run --allow-read --allow-write --allow-env https://raw.githubusercontent.com/Jamalam360/easytemplate/main/easytemplate.ts --disable-interactive-mode --input name="Template Mod Test Mod" --input mod_id=template_mod_test --input description="This is a mod to test the template mod." --input author=Jamalam360 --input group="io.github.jamalam360" --input main_class="TemplateModTest" --input github_owner="JamCoreModding" --input github_repo="multi-loader-template-mod" --input github_publish=true --input unified_publishing=true
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2
- name: Setup JDK 21
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 21
- name: Build
run: ./gradlew clean neoforge:build fabric:build
- name: Capture Fabric Build Artifacts
uses: actions/upload-artifact@v4
with:
name: Fabric Artifacts
path: fabric/build/libs/
- name: Capture NeoForge Build Artifacts
uses: actions/upload-artifact@v4
with:
name: NeoForge Artifacts
path: neoforge/build/libs/
- name: Agree to EULAs
run: mkdir fabric/run && touch fabric/run/eula.txt && mkdir neoforge/run && touch neoforge/run/eula.txt && echo "eula=true" > fabric/run/eula.txt && echo "eula=true" > neoforge/run/eula.txt
- name: Copy Test Server Script
run: cp backup/.github/workflows/test-server ./.github/workflows/test-server
- name: Run Test Server (Fabric)
run: chmod +x .github/workflows/test-server && ./.github/workflows/test-server fabric
- name: Run Test Server (NeoForge)
run: chmod +x .github/workflows/test-server && ./.github/workflows/test-server neoforge