forked from shiptest-ss13/Shiptest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates TGS support (shiptest-ss13#2185)
## Changelog :cl: Dominion, Mark Suckerberg server: We should now support TGS quick setup admin: The master controller now actually recovers /:cl: <!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. --> --------- Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: san7890 <the@san7890.com> Co-authored-by: Jordan Dominion <Cyberboss@users.noreply.github.com>
- Loading branch information
1 parent
31c91d5
commit db775a5
Showing
36 changed files
with
766 additions
and
241 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,63 @@ | ||
name: TGS Test Suite | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'gh-readonly-queue/master/**' | ||
paths: | ||
- '.tgs.yml' | ||
- 'dependencies.sh' | ||
- 'code/__DEFINES/tgs.config.dm' | ||
- 'code/__DEFINES/tgs.dm' | ||
- 'code/game/world.dm' | ||
- 'code/modules/tgs/**' | ||
- 'tools/tgs_scripts/**' | ||
- 'tools/tgs_test/**' | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- '.tgs.yml' | ||
- 'dependencies.sh' | ||
- 'code/__DEFINES/tgs.config.dm' | ||
- 'code/__DEFINES/tgs.dm' | ||
- 'code/game/world.dm' | ||
- 'code/modules/tgs/**' | ||
- 'tools/tgs_scripts/**' | ||
- 'tools/tgs_test/**' | ||
merge_group: | ||
branches: | ||
- master | ||
env: | ||
TGS_API_PORT: 5000 | ||
PR_NUMBER: ${{ github.event.number }} | ||
jobs: | ||
test_tgs_docker: | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
name: Test TGS Docker | ||
runs-on: ubuntu-22.04 | ||
concurrency: | ||
group: test_tgs_docker-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
services: | ||
tgs: | ||
image: tgstation/server | ||
env: | ||
Database__DatabaseType: Sqlite | ||
Database__ConnectionString: Data Source=TGS_TGTest.sqlite3;Mode=ReadWriteCreate | ||
General__ConfigVersion: 4.1.0 | ||
General__ApiPort: ${{ env.TGS_API_PORT }} | ||
General__SetupWizardMode: Never | ||
ports: | ||
- 5000:5000 #Can't use env here for some reason | ||
steps: | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v2 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Test TGS Integration | ||
run: dotnet run -c Release --project tools/tgs_test ${{ github.repository }} /tgs_instances/tgstation ${{ env.TGS_API_PORT }} ${{ github.event.head_commit.sha || github.event.pull_request.head.sha }} ${{ secrets.GITHUB_TOKEN }} ${{ env.PR_NUMBER }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This file is used by TGS (https://github.com/tgstation/tgstation-server) clients to quickly initialize a server instance for the codebase | ||
# The format isn't documented anywhere but hopefully we never have to change it. If there are questions, contact the TGS maintainer Cyberboss/@Dominion#0444 | ||
version: 1 | ||
# The BYOND version to use (kept in sync with dependencies.sh by the "TGS Test Suite" CI job) | ||
# Must be interpreted as a string, keep quoted | ||
byond: "514.1588" | ||
# Folders to create in "<instance_path>/Configuration/GameStaticFiles/" | ||
static_files: | ||
# Config directory should be static | ||
- name: config | ||
# This implies the folder should be pre-populated with contents from the repo | ||
populate: true | ||
# Data directory must be static | ||
- name: data | ||
# String dictionary. The value is the location of the file in the repo to upload to TGS. The key is the name of the file to upload to "<instance_path>/Configuration/EventScripts/" | ||
# This one is for Linux hosted servers | ||
linux_scripts: | ||
PreCompile.sh: tools/tgs_scripts/PreCompile.sh | ||
WatchdogLaunch.sh: tools/tgs_scripts/WatchdogLaunch.sh | ||
InstallDeps.sh: tools/tgs_scripts/InstallDeps.sh | ||
# Same as above for Windows hosted servers | ||
windows_scripts: | ||
PreCompile.bat: tools/tgs_scripts/PreCompile.bat | ||
# The security level the game should be run at | ||
security: Trusted |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//Datum used to init Auxtools debugging as early as possible | ||
//Datum gets created in master.dm because for whatever reason global code in there gets runs first | ||
//In case we ever figure out how to manipulate global init order please move the datum creation into this file | ||
/datum/debugger | ||
|
||
/datum/debugger/New() | ||
enable_debugger() | ||
|
||
/datum/debugger/proc/enable_debugger() | ||
var/dll = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL") | ||
if (dll) | ||
call(dll, "auxtools_init")() | ||
enable_debugging() |
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
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
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
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
Oops, something went wrong.