Voreupdate [MDB IGNORE] [IDB IGNORE] #735
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 | |
on: | |
pull_request: | |
branches: | |
- master | |
env: | |
BASENAME: "vorestation" | |
jobs: | |
run_linters: | |
name: Run Linters | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
# Caches | |
- name: Restore Yarn cache | |
uses: actions/cache@v4 | |
with: | |
path: tgui/.yarn/cache | |
key: ${{ runner.os }}-yarn-${{ hashFiles('tgui/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Restore Node cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nvm | |
key: ${{ runner.os }}-node-${{ hashFiles('dependencies.sh') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Restore Bootstrap cache | |
uses: actions/cache@v4 | |
with: | |
path: tools/bootstrap/.cache | |
key: ${{ runner.os }}-bootstrap-${{ hashFiles('tools/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-bootstrap- | |
- name: Restore Rust cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cargo | |
key: ${{ runner.os }}-rust-${{ hashFiles('tools/ci/ci_dependencies.sh')}} | |
restore-keys: | | |
${{ runner.os }}-rust- | |
- name: Restore Cutter cache | |
uses: actions/cache@v4 | |
with: | |
path: tools/icon_cutter/cache | |
key: ${{ runner.os }}-cutter-${{ hashFiles('dependencies.sh') }} | |
# End Caches | |
- name: Install Tools | |
run: | | |
pip3 install setuptools | |
bash tools/ci/install_node.sh | |
bash tools/ci/install_ripgrep.sh | |
tools/bootstrap/python -c '' | |
- name: Run Grep Checks | |
run: tools/ci/validate_files.sh | |
- name: Run TGUI Checks | |
run: tools/build/build --ci lint tgui-test | |
dreamchecker: | |
name: DreamChecker | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Restore SpacemanDMM Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/SpacemanDMM | |
key: ${{ runner.os }}-dreamchecker-${{ hashFiles('dependencies.sh')}} | |
restore-keys: ${{ runner.os }}-dreamchecker | |
- name: Install Dependencies | |
run: | | |
tools/ci/install_spaceman_dmm.sh dreamchecker | |
- name: Run Linter | |
id: linter | |
run: | | |
~/dreamchecker > ${GITHUB_WORKSPACE}/output-annotations.txt 2>&1 | |
- name: Annotate Linter | |
uses: yogstation13/DreamAnnotate@v2 | |
if: always() | |
with: | |
outputFile: output-annotations.txt | |
unit_tests: | |
strategy: | |
matrix: | |
map: ['USE_MAP_CRYOGAIA'] # YW EDIT Cryogaia | |
# name: Integration Tests (${{ matrix.map }}) | |
name: Integration Tests | |
# needs: ['run_linters', 'dreamchecker'] | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Ensure +x on CI directory | |
run: | | |
chmod -R +x ./tools/ci | |
- name: Restore BYOND Cache | |
uses: actions/cache@v4 | |
with: | |
path: $HOME/byond | |
key: ${{ runner.os }}-byond | |
- name: Install RUST_G Dependencies | |
run: | | |
sudo dpkg --add-architecture i386 | |
sudo apt update || true | |
sudo apt install zlib1g-dev:i386 libssl-dev:i386 | |
ldd librust_g.so | |
ldd libbapi_dmm_reader.so | |
ldd libverdigris.so | |
- name: Unit Tests | |
run: | | |
tools/ci/install_byond.sh | |
tools/ci/compile_and_run.sh | |
env: | |
EXTRA_ARGS: "-DUNIT_TEST -D${{ matrix.map }}" | |
RUN: "1" | |
extra_map_tests: | |
name: Map Tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Ensure +x on CI directory | |
run: | | |
chmod -R +x ./tools/ci | |
- name: Restore BYOND Cache | |
uses: actions/cache@v4 | |
with: | |
path: $HOME/byond | |
key: ${{ runner.os }}-byond | |
- name: Install BYOND | |
run: tools/ci/install_byond.sh | |
- name: Compile POIs | |
run: tools/ci/compile_and_run.sh | |
env: | |
EXTRA_ARGS: "-DMAP_TEST" | |
RUN: "0" | |
- name: Compile away missions | |
run: tools/ci/compile_and_run.sh | |
env: | |
EXTRA_ARGS: "-DAWAY_MISSION_TEST -DUSE_MAP_CRYOGAIA" # YW EDIT CRYOGAIA # Only Tether has support for all away missions | |
RUN: "0" | |
tests_successful: | |
name: Integration Tests | |
needs: ['run_linters', 'dreamchecker', 'unit_tests', 'extra_map_tests'] | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Report Success | |
run: | | |
echo "Jobs Successful!" |