mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 17:41:50 +00:00
## About The Pull Request Ever since byondapi went stable, I've been meaning to create a replacement lua library that uses it instead of the auxtools-based auxlua. After so many months, I've finally got the code just about into a position where it's ready for a PR. [Click here](https://hackmd.io/@aloZJicNQrmfYgykhfFwAQ/BySAS18u0) for a guide to rewriting auxlua scripts for dreamluau syntax. ## Why It's Good For The Game Code that runs on production servers should not depend on memory hacks that are liable to break any time Dream Daemon updates. ## Changelog 🆑 admin: Admin lua scripting uses a new library that (probably) will not break when BYOND updates. /🆑 ## TODO: - [x] Convert the lua editor ui to TS - [x] Include a guide for converting scripts from auxlua syntax to dreamluau syntax
80 lines
2.7 KiB
YAML
80 lines
2.7 KiB
YAML
# This is a reusable workflow to run integration tests on a single map.
|
|
# This is run for every single map in ci_suite.yml. You might want to edit that instead.
|
|
name: Run Integration Tests
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
map:
|
|
required: true
|
|
type: string
|
|
major:
|
|
required: false
|
|
type: string
|
|
minor:
|
|
required: false
|
|
type: string
|
|
max_required_byond_client:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
run_integration_tests:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
services:
|
|
mysql:
|
|
image: mysql:latest
|
|
env:
|
|
MYSQL_ROOT_PASSWORD: root
|
|
ports:
|
|
- 3306
|
|
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Restore BYOND cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/BYOND
|
|
key: ${{ runner.os }}-byond-${{ hashFiles('dependencies.sh') }}
|
|
- name: Setup database
|
|
run: |
|
|
sudo systemctl start mysql
|
|
mysql -u root -proot -e 'CREATE DATABASE tg_ci;'
|
|
mysql -u root -proot tg_ci < SQL/tgstation_schema.sql
|
|
mysql -u root -proot -e 'CREATE DATABASE tg_ci_prefixed;'
|
|
mysql -u root -proot tg_ci_prefixed < SQL/tgstation_schema_prefixed.sql
|
|
- name: Install rust-g
|
|
run: |
|
|
bash tools/ci/install_rust_g.sh
|
|
- name: Install dreamluau
|
|
run: |
|
|
bash tools/ci/install_dreamluau.sh
|
|
- name: Configure version
|
|
run: |
|
|
echo "BYOND_MAJOR=${{ inputs.major }}" >> $GITHUB_ENV
|
|
echo "BYOND_MINOR=${{ inputs.minor }}" >> $GITHUB_ENV
|
|
if: ${{ inputs.major }}
|
|
- name: Compile Tests
|
|
id: compile_tests
|
|
run: |
|
|
bash tools/ci/install_byond.sh
|
|
source $HOME/BYOND/byond/bin/byondsetup
|
|
tools/build/build --ci dm -DCIBUILDING -DANSICOLORS -Werror -ITG0001 -I"loop_checks"
|
|
- name: Run Tests
|
|
run: |
|
|
source $HOME/BYOND/byond/bin/byondsetup
|
|
bash tools/ci/run_server.sh ${{ inputs.map }}
|
|
- name: Upload screenshot tests
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test_artifacts_${{ inputs.map }}_${{ inputs.major }}_${{ inputs.minor }}
|
|
path: data/screenshots_new/
|
|
retention-days: 1
|
|
- name: Check client Compatibility
|
|
if: always() && steps.compile_tests.outcome == 'success'
|
|
uses: tgstation/byond-client-compatibility-check@v3
|
|
with:
|
|
dmb-location: tgstation.dmb
|
|
max-required-client-version: ${{inputs.max_required_byond_client}}
|