Command Overhaul - By GooglyFox #654
Workflow file for this run
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
name: CI Suite | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
run_linters: | |
name: Run Linters | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Python setup | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.9" | |
- uses: actions/checkout@v2 | |
- name: Setup cache | |
id: cache-spacemandmm | |
uses: actions/cache@v2 | |
with: | |
path: ~/dreamchecker | |
key: ${{ runner.os }}-spacemandmm-cache-${{ hashFiles('dependencies.sh') }} | |
- name: Install SpacemanDMM | |
if: steps.cache-spacemandmm.outputs.cache-hit != 'true' | |
run: bash tools/ci/install_spaceman_dmm.sh dreamchecker | |
- name: Install Tools | |
run: | | |
pip3 install setuptools | |
pip install pyyaml | |
bash tools/ci/install_node.sh | |
bash tools/ci/install_spaceman_dmm.sh dreamchecker | |
bash tools/ci/install_auxmos.sh | |
tools/bootstrap/python -c '' | |
- name: Run Linters | |
run: | | |
bash tools/ci/check_filedirs.sh shiptest.dme | |
bash tools/ci/check_changelogs.sh | |
bash tools/ci/check_grep.sh | |
bash tools/ci/check_misc.sh | |
tgui/bin/tgui --lint | |
tools/bootstrap/python -m dmi.test | |
tools/bootstrap/python -m mapmerge2.dmm_test | |
~/dreamchecker > ${GITHUB_WORKSPACE}/output-annotations.txt 2>&1 | |
- name: Annotate Lints | |
uses: yogstation13/DreamAnnotate@v1 | |
if: always() | |
with: | |
outputFile: output-annotations.txt | |
compile_all_maps: | |
name: Compile Maps | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Python setup | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.9" | |
- name: Setup cache | |
id: cache-byond | |
uses: actions/cache@v2 | |
with: | |
path: ~/BYOND | |
key: ${{ runner.os }}-byond-cache-${{ hashFiles('Dockerfile') }} | |
- name: Install BYOND | |
if: steps.cache-byond.outputs.cache-hit != 'true' | |
run: bash tools/ci/install_byond.sh | |
- name: Compile All Maps | |
run: | | |
source $HOME/BYOND/byond/bin/byondsetup | |
tools/bootstrap/python tools/ci/template_dm_generator.py | |
tgui/bin/tgui --build | |
bash tools/ci/dm.sh -DCIBUILDING -DCITESTING -DALL_MAPS shiptest.dme |