-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d4dbd6
commit 3656418
Showing
6 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Test | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: "Test" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup git | ||
run: 'git config --global user.email "[email protected]" && git config --global user.name "GitHub Actions"' | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
cache: 'gradle' | ||
- name: Run tests | ||
run: ./gradlew clean test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
api/src/test/java/net/azisaba/azipluginmessaging/test/ProtocolTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package net.azisaba.azipluginmessaging.test; | ||
|
||
import net.azisaba.azipluginmessaging.api.protocol.PacketFlow; | ||
import net.azisaba.azipluginmessaging.api.protocol.Protocol; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class ProtocolTest { | ||
@Test | ||
public void load() { | ||
Protocol.getById(PacketFlow.TO_SERVER, (byte) 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters