aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authormdxd44 <ogurec332@mail.ru>2021-12-17 19:31:55 +0900
committermdxd44 <ogurec332@mail.ru>2021-12-17 19:31:55 +0900
commitcff1b4a22bb47c8bcf064d5e8da8c7d7ef67ea52 (patch)
tree9fc8614b144288af2749c2376c8ca523cd2a0cc0 /.github
parentf11b09654cc33f4c3d9239c04be5978cbe3cad2d (diff)
downloadLimboAuth-cff1b4a22bb47c8bcf064d5e8da8c7d7ef67ea52.tar.gz
LimboAuth-cff1b4a22bb47c8bcf064d5e8da8c7d7ef67ea52.tar.bz2
LimboAuth-cff1b4a22bb47c8bcf064d5e8da8c7d7ef67ea52.zip
Split projects.
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md30
-rw-r--r--.github/workflows/build.yml32
-rw-r--r--.github/workflows/test.yml32
3 files changed, 94 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..68093ca
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,30 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: "[BUG] "
+labels: bug
+assignees: ''
+
+---
+
+**Describe the bug**
+A clear and concise description of what the bug is.
+
+**To Reproduce**
+Steps to reproduce the behavior:
+1. Set '...' in config to '...'
+2. Do in game '....'
+3. See error
+
+**Expected behavior**
+A clear and concise description of what you expected to happen.
+
+**Screenshots**
+If applicable, add screenshots to help explain your problem.
+
+**Server Info (please complete the following information):**
+ - LimboAPI Version [e.g. 1.0.1-rc2, downloaded from https://github.com/Elytrium/LimboAPI/actions/runs/1354021163]
+ - /velocity dump link [e.g. https://dump.velocitypowered.com/dotihadufu.json]
+
+**Additional context**
+Add any other context about the problem here.
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..40d732e
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,32 @@
+name: Java CI with Gradle
+
+on: [ push ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java: [ 11, 16 ]
+ fail-fast: true
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2.3.5
+ - name: Set up JDK ${{ matrix.java }}
+ uses: actions/setup-java@v2.3.1
+ with:
+ distribution: adopt
+ java-version: ${{ matrix.java }}
+ - name: Cache Gradle
+ uses: actions/cache@v2.1.6
+ with:
+ path: ~/.gradle
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
+ restore-keys: ${{ runner.os }}-gradle-
+ - name: Build LimboAuth
+ run: ./gradlew build
+ - name: Upload LimboAuth
+ uses: actions/upload-artifact@v2.2.4
+ with:
+ name: LimboAuth Built On ${{ matrix.java }} JDK
+ path: "build/libs/limboauth*.jar"
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..6259d74
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,32 @@
+name: Java CI with Gradle [PR tests]
+
+on: [ pull_request ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java: [ 11, 16 ]
+ fail-fast: true
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2.3.5
+ - name: Set up JDK ${{ matrix.java }}
+ uses: actions/setup-java@v2.3.1
+ with:
+ distribution: adopt
+ java-version: ${{ matrix.java }}
+ - name: Cache Gradle
+ uses: actions/cache@v2.1.6
+ with:
+ path: ~/.gradle
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
+ restore-keys: ${{ runner.os }}-gradle-
+ - name: Build LimboAuth
+ run: ./gradlew build
+ - name: Upload LimboAuth
+ uses: actions/upload-artifact@v2.2.4
+ with:
+ name: LimboAuth Built On ${{ matrix.java }} JDK
+ path: "build/libs/limboauth*.jar"