mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
## About The Pull Request <img width="908" height="878" alt="image" src="https://github.com/user-attachments/assets/7262576b-f7d9-4be4-8cff-6662f85698fd" /> Our application of Ubuntu 22.04 versus Ubuntu 24.04 (which is presently the version for `ubuntu-latest`) is pretty inconsistent even within the same suites, I figure we bump it up and set one standard moving forwards. This PR was originally set to autoset it to `ubuntu-latest` but wow the issues are agonizing so let's just bump it up and keep it synchronized also bumps python to `3.11.0` and whatever dependency versions needed that as that was necessary
71 lines
2.1 KiB
YAML
71 lines
2.1 KiB
YAML
name: TGS Test Suite
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- "project/**"
|
|
- "gh-readonly-queue/master/**"
|
|
- "gh-readonly-queue/project/**"
|
|
paths:
|
|
- ".tgs.yml"
|
|
- ".github/workflows/tgs_test.yml"
|
|
- "dependencies.sh"
|
|
- "code/__DEFINES/tgs.config.dm"
|
|
- "code/__DEFINES/tgs.dm"
|
|
- "code/game/world.dm"
|
|
- "code/modules/tgs/**"
|
|
- "tools/bootstrap/**"
|
|
- "tools/tgs_scripts/**"
|
|
- "tools/tgs_test/**"
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- "project/**"
|
|
paths:
|
|
- ".tgs.yml"
|
|
- ".github/workflows/tgs_test.yml"
|
|
- "dependencies.sh"
|
|
- "code/__DEFINES/tgs.config.dm"
|
|
- "code/__DEFINES/tgs.dm"
|
|
- "code/game/world.dm"
|
|
- "code/modules/tgs/**"
|
|
- "tools/bootstrap/**"
|
|
- "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-24.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: 5.0.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@v5
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Test TGS Integration
|
|
run: dotnet run -c Release --project tools/tgs_test ${{ github.repository }} /tgs_instances/tgstation ${{ env.TGS_API_PORT }} ${{ github.event.pull_request.head.sha || github.sha }} ${{ secrets.GITHUB_TOKEN }} ${{ env.PR_NUMBER }}
|