Fix gradle and add workflows
Build and Test j3270 / Build JAR & Run Tests (push) Failing after 2m24s

This commit is contained in:
2026-08-20 18:24:35 -04:00
parent 80166c477b
commit a1b1273022
68 changed files with 1102 additions and 153 deletions
+56
View File
@@ -0,0 +1,56 @@
name: Bug Report
about: Create a report to help us fix an issue with j3270
title: "[BUG] "
labels:
- bug
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to report an issue!
- type: input
id: host_environment
attributes:
label: Host Environment
description: What mainframe / operating system was connected (e.g., z/OS, z/VM, CMS, TSO, MVS 3.8j, Hercules/TK4-)?
placeholder: "e.g. z/VM 7.2 CMS, Hercules TK4-"
validations:
required: false
- type: dropdown
id: terminal_model
attributes:
label: Terminal Model
description: Terminal model in use
options:
- 3279-2 (Color 24x80)
- 3279-3 (Color 32x80)
- 3279-4 (Color 43x80)
- 3279-5 (Color 27x132)
- 3278 (Monochrome)
validations:
required: true
- type: textarea
id: description
attributes:
label: Problem Description
description: A clear and concise description of what went wrong.
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. Connect to host '...'
2. Open File Transfer dialog
3. Start IND$FILE GET ...
4. See error ...
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs / Output
description: Paste any console or runner logs here.
render: shell
@@ -0,0 +1,25 @@
name: Feature Request
about: Suggest an idea or x3270 feature for j3270
title: "[FEATURE] "
labels:
- enhancement
body:
- type: textarea
id: feature_description
attributes:
label: Feature Description
description: Describe the feature or improvement you would like to see.
validations:
required: true
- type: textarea
id: x3270_alignment
attributes:
label: x3270 / Mainframe Protocol Details
description: How does x3270 or standard 3270 data stream handle this?
validations:
required: false
- type: textarea
id: alternatives
attributes:
label: Alternatives Considered
description: Any alternative solutions or features you've considered.
+63
View File
@@ -0,0 +1,63 @@
name: Build and Test j3270
on:
push:
branches: [ "master", "main", "develop" ]
pull_request:
branches: [ "master", "main" ]
workflow_dispatch:
jobs:
build:
name: Build JAR & Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Java JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Make scripts executable
run: |
chmod +x ./build_all.sh ./gradlew ./run.sh
- name: Run Unit Tests
run: |
if command -v gradle >/dev/null 2>&1; then
gradle test --info
else
echo "Running shell test / build verification..."
./build_all.sh
fi
- name: Build Standalone JAR
run: |
./build_all.sh
- name: Upload j3270 Executable JAR Artifact
uses: actions/upload-artifact@v4
with:
name: j3270-executable-jar
path: build/j3270.jar
if-no-files-found: error
- name: Upload Test Reports
if: always()
uses: actions/upload-artifact@v4
with:
name: test-reports
path: |
lib3270j/build/reports/tests/
j3270/build/reports/tests/
if-no-files-found: ignore
- name: Report Build Status
if: failure()
run: |
echo "### ❌ Build or Test Failed" >> $GITHUB_STEP_SUMMARY
echo "Please check the runner logs and test reports above for details." >> $GITHUB_STEP_SUMMARY