-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
108 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,114 +9,45 @@ on: | |
|
||
jobs: | ||
run_linters: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: Run Linters | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Restore SpacemanDMM cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/SpacemanDMM | ||
key: ${{ runner.os }}-spacemandmm-${{ hashFiles('dependencies.sh') }} | ||
restore-keys: | | ||
${{ runner.os }}-spacemandmm- | ||
- 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') }} | ||
- name: Install OpenDream | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: "OpenDreamProject/OpenDream" | ||
tag: "latest" | ||
fileName: "DMCompiler_linux-x64.tar.gz" | ||
extract: true | ||
- name: Install Tools | ||
run: | | ||
pip3 install setuptools | ||
bash tools/ci/install_node.sh | ||
bash tools/ci/install_spaceman_dmm.sh dreamchecker | ||
bash tools/ci/install_ripgrep.sh | ||
tools/bootstrap/python -c '' | ||
- name: Give Linters A Go | ||
id: linter-setup | ||
run: ':' | ||
- name: Run Grep Checks | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: bash tools/ci/check_grep.sh | ||
- name: Ticked File Enforcement | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: | | ||
tools/bootstrap/python tools/ticked_file_enforcement/ticked_file_enforcement.py < tools/ticked_file_enforcement/schemas/tgstation_dme.json | ||
tools/bootstrap/python tools/ticked_file_enforcement/ticked_file_enforcement.py < tools/ticked_file_enforcement/schemas/unit_tests.json | ||
- name: Check Define Sanity | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: tools/bootstrap/python -m define_sanity.check | ||
- name: Check Trait Validity | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: tools/bootstrap/python -m trait_validity.check | ||
- name: Run DreamChecker | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
shell: bash | ||
run: ~/dreamchecker 2>&1 | bash tools/ci/annotate_dm.sh | ||
- name: Run OpenDream | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: ./DMCompiler_linux-x64/DMCompiler tgstation.dme --suppress-unimplemented --define=CIBUILDING | bash tools/ci/annotate_od.sh | ||
- name: Run Map Checks | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: | | ||
tools/bootstrap/python -m mapmerge2.dmm_test | ||
tools/bootstrap/python -m tools.maplint.source | ||
- name: Check Cutter | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: tools/bootstrap/python -m tools.icon_cutter.check | ||
- name: Run DMI Tests | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: tools/bootstrap/python -m dmi.test | ||
- name: Check File Directories | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: bash tools/ci/check_filedirs.sh tgstation.dme | ||
- name: Check Changelogs | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: bash tools/ci/check_changelogs.sh | ||
- name: Check Miscellaneous Files | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: bash tools/ci/check_misc.sh | ||
- name: Run TGUI Checks | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: tools/build/build --ci lint tgui-test | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
name: Run Linters | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Restore SpacemanDMM cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/SpacemanDMM | ||
key: ${{ runner.os }}-spacemandmm | ||
- name: Restore Yarn cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: tgui/.yarn/cache | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('tgui/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install Tools | ||
run: | | ||
pip3 install setuptools | ||
bash tools/ci/install_node.sh | ||
bash tools/ci/install_spaceman_dmm.sh dreamchecker | ||
tools/bootstrap/python -c '' | ||
- name: Run Linters | ||
run: | | ||
bash tools/ci/check_filedirs.sh tgstation.dme | ||
bash tools/ci/check_changelogs.sh | ||
bash tools/ci/check_grep.sh | ||
bash tools/ci/check_misc.sh | ||
tools/build/build --ci 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@v2 | ||
if: always() | ||
with: | ||
outputFile: output-annotations.txt | ||
|
||
compile_all_maps: | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
|