Files
Paradise/.github/workflows/ci.yml
dependabot[bot] bccc6a606a Bump actions/cache from 4 to 5 (#31279)
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-17 14:57:58 +00:00

153 lines
4.7 KiB
YAML

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
merge_group:
jobs:
run_linters:
name: Run Linters
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Setup Cache
uses: actions/cache@v5
with:
path: ~/SpacemanDMM
key: ${{ runner.os }}-spacemandmm
- name: Install Tools
run: |
bash tools/ci/install_build_deps.sh
bash tools/ci/install_dreamchecker.sh
- uses: actions/setup-python@v6
with:
python-version: '3.13'
cache: 'pip'
- uses: actions/setup-node@v6
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: ./tgui/yarn.lock
- run: pip install -r tools/requirements.txt
- name: Run Linters
run: |
tools/ci/check_json.sh
tgui/bin/tgui --ci
python tools/ci/check_grep2.py
python tools/ci/check_line_endings.py
python tools/ci/check_file_names.py
python tools/ci/unticked_files.py ${GITHUB_WORKSPACE}
python tools/ci/illegal_dme_files.py ${GITHUB_WORKSPACE}
python tools/ci/define_sanity.py
python tools/ci/identical_variables.py
python tools/ci/restrict_file_types.py
python tools/ci/verify_sql_version.py
python tools/ci/no_duplicate_definitions.py
python tools/ci/check_icons.py
python tools/ci/check_random_spawner_prefabs.py
python -m tools.ci.check_map_sizes
python -m tools.ci.check_legacy_attack_chain
python -m tools.ci.check_simplemob_additions
python -m tools.ci.check_user_verb_params
python -m tools.maplint.source --github
- name: Run DreamChecker
shell: bash
run: ~/dreamchecker 2>&1 | bash tools/ci/annotate_dm.sh
odlint:
name: Lint with OpenDream
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Setup OD
run: |
bash tools/ci/setup_od.sh
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5.0.1
with:
dotnet-version: 9.x
- name: Run OD
run: |
bash tools/ci/run_od.sh
compile_all_maps:
name: Compile All Maps
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
byondtype: ['STABLE']
steps:
- uses: actions/checkout@v6
- name: Restore BYOND from Cache
uses: ./.github/actions/restore_or_install_byond
with:
release: ${{ matrix.byondtype }}
# We test PARADISE_PRODUCTION_HARDWARE here because we dont in station_mapload_tests
- name: Compile All Maps
run: |
tools/ci/install_byond.sh
source $HOME/BYOND/byond/bin/byondsetup
tools/ci/generate_maplist.sh
DreamMaker -DMULTIINSTANCE -DCIMAP -DPARADISE_PRODUCTION_HARDWARE paradise.dme
station_mapload_tests:
name: Station Tests
runs-on: ubuntu-22.04
strategy:
fail-fast: false # Let all map tests run to completion
matrix:
station: ['boxstation', 'deltastation', 'metastation', 'cerestation', 'emeraldstation']
byondtype: ['STABLE']
steps:
- uses: actions/checkout@v6
- name: Restore BYOND from Cache
uses: ./.github/actions/restore_or_install_byond
with:
release: ${{ matrix.byondtype }}
- name: Compile & Run Unit Tests
run: |
tools/ci/install_byond.sh '${{ matrix.byondtype }}'
source $HOME/BYOND/byond/bin/byondsetup
DreamMaker -DMAP_TESTS -DTEST_CONFIG_OVERRIDE=\"unit_tests\" -DMULTIINSTANCE -DCIBUILDING paradise.dme
mkdir -p data
echo '/datum/map/${{ matrix.station }}' > data/next_map.txt
tools/ci/run_server.sh
unit_tests_and_sql:
name: Unit Tests + SQL Validation
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
byondtype: ['STABLE']
steps:
- uses: actions/checkout@v6
- name: Restore BYOND from Cache
uses: ./.github/actions/restore_or_install_byond
with:
release: ${{ matrix.byondtype }}
- name: Setup & Validate DB
run: |
sudo systemctl start mysql
python3 tools/ci/generate_sql_scripts.py
tools/ci/validate_sql.sh
- name: Compile & Run Unit Tests
run: |
tools/ci/install_byond.sh '${{ matrix.byondtype }}'
source $HOME/BYOND/byond/bin/byondsetup
DreamMaker -DGAME_TESTS -DTEST_CONFIG_OVERRIDE=\"unit_tests\" -DMULTIINSTANCE -DCIBUILDING paradise.dme
mkdir -p data
echo '/datum/map/test_tiny' > data/next_map.txt
tools/ci/run_server.sh