Skip to content
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
28 changes: 28 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests
on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
cache: gradle
- run: chmod +x gradlew
- run: ./gradlew test --no-daemon
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: |
build/reports/tests/test
build/test-results/test
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,19 @@ Create client-side entities, send packets, and change what individual players se
<a href="https://skdocs.org/?addon=skPackets">
<img src="https://camo.githubusercontent.com/1623c33b83fe153048358ded38409eb55182c29a98158e78b1aeca2ad9575e32/687474703a2f2f736b646f63732e6f72672f76696577646f63732e706e67" alt="View skPackets documentation on SkDocs">
</a>
<a href="http://skripthub.net/docs/?addon=skPackets">
<img src="http://skripthub.net/static/addon/ViewTheDocsButton.png" alt="View skPackets documentation on SkriptHub">
</a>

<div align="center">

[Features](#features) · [Requirements](#requirements) · [Showcases](#showcases) · [Persistence](#persistence) · [Credits](#credits)
[![Features](https://img.shields.io/badge/Navigation-Features-007ACC?style=for-the-badge)](#features)
[![Requirements](https://img.shields.io/badge/Navigation-Requirements-007ACC?style=for-the-badge)](#requirements)
[![Showcases](https://img.shields.io/badge/Navigation-Showcases-007ACC?style=for-the-badge)](#showcases)
[![Persistence](https://img.shields.io/badge/Navigation-Persistence-007ACC?style=for-the-badge)](#persistence)
[![Credits](https://img.shields.io/badge/Navigation-Credits-007ACC?style=for-the-badge)](#credits)

</div>

</div>

Expand Down
23 changes: 21 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ plugins {
}

group = "org.crebs"
version = "1.0"
version = "1.0.1"

val mockitoAgent by configurations.creating

repositories {
mavenCentral()
Expand All @@ -25,6 +27,16 @@ repositories {
}

dependencies {
testImplementation(platform("org.junit:junit-bom:6.0.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.apache.logging.log4j:log4j-api:2.26.1")
testImplementation("org.mockito:mockito-core:5.15.2")
testImplementation("net.bytebuddy:byte-buddy:1.18.12")
testRuntimeOnly("net.bytebuddy:byte-buddy-agent:1.18.12")
mockitoAgent("org.mockito:mockito-core:5.15.2") {
isTransitive = false
}
implementation("io.github.tofaa2:spigot:4.0.0-alpha.4") {
exclude(group = "org.jetbrains", module = "annotations")
}
Expand Down Expand Up @@ -80,5 +92,12 @@ tasks.withType<AbstractArchiveTask>().configureEach {
}

tasks.test {
enabled = false
useJUnitPlatform()
jvmArgumentProviders.add(CommandLineArgumentProvider {
listOf("-javaagent:${mockitoAgent.singleFile.absolutePath}")
})
}

configurations.testImplementation {
extendsFrom(configurations.compileOnly.get())
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 5 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#Mon Oct 19 03:04:29 GMT+08:00 2026
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.2-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
54 changes: 34 additions & 20 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 58 additions & 35 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading