Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PR build workflow and issue templates #636

Merged
merged 4 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Bug Report
description: Report an issue with Hex Casting
labels:
- bug
- unconfirmed

body:
- type: dropdown
attributes:
label: Modloader
options:
- Forge
- Fabric
- Quilt
validations:
required: true

- type: input
attributes:
label: Minecraft version
placeholder: eg. 1.19.2
validations:
required: true

- type: input
attributes:
label: Hex Casting version
placeholder: eg. 0.11.1-7-pre-609
validations:
required: true

- type: input
attributes:
label: Modloader version
description: |
List the version of the mod loader you are using.
If on Fabric, post the versions of both Fabric Loader and Fabric API.
placeholder: "eg. Forge: 36.2.9 / Fabric: Loader 0.10.6 + API 0.42.1"

- type: input
attributes:
label: Modpack info
description: If playing a modpack, post the link to it!

- type: input
attributes:
label: The latest.log file
description: Please use https://mclo.gs/ if possible. Sites like https://gist.github.com/ or https://pastebin.com/ are also acceptable.

- type: textarea
attributes:
label: Issue description
placeholder: A description of the issue.
validations:
required: true

- type: textarea
attributes:
label: Steps to reproduce
placeholder: |
1. First step
2. Second step
3. etc...

- type: textarea
attributes:
label: Other information
description: Any other relevant information that is related to this issue, such as other mods and their versions.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Feature Request
description: Suggest an improvement or a new feature
labels:
- enhancement
- unconfirmed

body:
- type: textarea
attributes:
label: Describe the feature
validations:
required: true

- type: textarea
attributes:
label: Additional context
description: Any other relevant information (eg. use cases, alternative solutions)
37 changes: 37 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# mirror of the Jenkins pipeline, used for requiring PRs to build successfully before merging
# this uses Actions because it's easier to integrate with GitHub PRs, and to allow running the build on forks

name: Build pull request

on:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17.0.1"
- uses: gradle/actions/setup-gradle@v3

- name: Clean
run: |
chmod +x gradlew
./gradlew clean

- name: Build
run: ./gradlew build

- name: Run Datagen
run: ./gradlew runAllDatagen

- name: Check Datagen
run: |
git add --intent-to-add .
git diff --name-only --exit-code -- ":!:*/src/generated/resources/.cache/*"