diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75fa1fe..000a347 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,6 +50,9 @@ jobs: with: # Upload entire repository path: 'build/dokka/html' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 - uses: release-drafter/release-drafter@v5 id: release-drafter diff --git a/src/test/kotlin/dev/nikomaru/raceassist/RaceAssistTest.kt b/src/test/kotlin/dev/nikomaru/raceassist/RaceAssistTest.kt deleted file mode 100644 index 4b4503e..0000000 --- a/src/test/kotlin/dev/nikomaru/raceassist/RaceAssistTest.kt +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright © 2021-2024 Nikomaru - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package dev.nikomaru.raceassist - -import be.seeseemelk.mockbukkit.MockBukkit -import com.comphenix.protocol.ProtocolLib -import com.comphenix.protocol.ProtocolLibrary -import org.bukkit.Server -import org.junit.jupiter.api.extension.AfterEachCallback -import org.junit.jupiter.api.extension.BeforeEachCallback -import org.junit.jupiter.api.extension.ExtensionContext -import org.koin.core.context.loadKoinModules -import org.koin.dsl.module - -open class RaceAssistTest : BeforeEachCallback, AfterEachCallback { - - private lateinit var server: Server - private lateinit var plugin: RaceAssist - - override fun beforeEach(context: ExtensionContext) { - println("beforeEach() executed before " + context.displayName + "."); - server = MockBukkit.mock() - setupKoin() - } - - override fun afterEach(context: ExtensionContext) { - MockBukkit.unmock() - } - - - private fun setupKoin() { - plugin = MockBukkit.load(RaceAssist::class.java) - val appModule = module { - single { plugin } - single { server } - } - loadKoinModules(appModule) - } -} \ No newline at end of file diff --git a/src/test/kotlin/dev/nikomaru/raceassist/race/commands/HelpCommandTest.kt b/src/test/kotlin/dev/nikomaru/raceassist/race/commands/HelpCommandTest.kt deleted file mode 100644 index fd14a8a..0000000 --- a/src/test/kotlin/dev/nikomaru/raceassist/race/commands/HelpCommandTest.kt +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright © 2021-2024 Nikomaru - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package dev.nikomaru.raceassist.race.commands - -import be.seeseemelk.mockbukkit.ServerMock -import dev.nikomaru.raceassist.RaceAssistTest -import org.junit.jupiter.api.DisplayName -import org.junit.jupiter.api.Test -import org.junit.jupiter.api.extension.ExtendWith -import org.koin.test.KoinTest -import org.koin.test.inject - -@ExtendWith(RaceAssistTest::class) -class HelpCommandTest : KoinTest{ - private val server : ServerMock by inject() - - @Test - @DisplayName("コマンドテスト: ra help") - fun sendHelp(){ - val player = server.addPlayer() - val result = player.performCommand("ra help") - assert(result) - } -} \ No newline at end of file