mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-21 06:07:16 +01:00
f3edaae8b3
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>
112 lines
4.3 KiB
YAML
112 lines
4.3 KiB
YAML
name: Run Linters
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
linters:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 15
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
# Caches
|
|
- name: Restore SpacemanDMM cache
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: ~/SpacemanDMM
|
|
key: ${{ runner.os }}-spacemandmm-${{ hashFiles('dependencies.sh') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-spacemandmm-
|
|
- name: Setup Bun
|
|
uses: ./.github/actions/setup_bun
|
|
- name: Restore Bootstrap cache
|
|
uses: actions/cache@v5
|
|
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@v5
|
|
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@v5
|
|
with:
|
|
path: tools/icon_cutter/cache
|
|
key: ${{ runner.os }}-cutter-${{ hashFiles('dependencies.sh') }}
|
|
# End Caches
|
|
- name: Setup .NET SDK
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: 9.x
|
|
- name: Install OpenDream
|
|
uses: robinraju/release-downloader@v1.12
|
|
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_spaceman_dmm.sh dreamchecker
|
|
bash tools/ci/install_ripgrep.sh
|
|
tools/bootstrap/python -c ''
|
|
- name: Give Linters A Go
|
|
id: linter-setup
|
|
run: ":"
|
|
- name: Ensure genesis_call.dme is unchanged
|
|
if: steps.linter-setup.conclusion == 'success' && !cancelled()
|
|
run: bash tools/ci/check_genesis.sh
|
|
- 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: Run Define Sanity Checks
|
|
run: tools/bootstrap/python -m define_sanity.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 vorestation.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.sh --ci lint tgui-test
|
|
|
|
|
|
- name: Run Nanomap Checks
|
|
run: tools/github-actions/nanomap-renderer-invoker.sh --testing
|