-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into easter-is-reaaaal…
…llllll
- Loading branch information
Showing
3,724 changed files
with
459,195 additions
and
102,587 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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
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
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 |
---|---|---|
|
@@ -13,98 +13,125 @@ on: | |
merge_group: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
run_linters: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: Run Linters | ||
runs-on: ubuntu-22.04 | ||
concurrency: | ||
group: run_linters-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Restore SpacemanDMM cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/SpacemanDMM | ||
key: ${{ runner.os }}-spacemandmm | ||
key: ${{ runner.os }}-spacemandmm-${{ hashFiles('dependencies.sh') }} | ||
restore-keys: | | ||
${{ runner.os }}-spacemandmm- | ||
- name: Restore Yarn cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: tgui/.yarn/cache | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('tgui/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
${{ 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@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cargo | ||
key: ${{ runner.os }}-rust | ||
key: ${{ runner.os }}-rust-${{ hashFiles('tools/ci/ci_dependencies.sh')}} | ||
restore-keys: | | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
${{ runner.os }}-rust- | ||
- 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 | ||
cargo install ripgrep --features pcre2 | ||
bash tools/ci/install_ripgrep.sh | ||
tools/bootstrap/python -c '' | ||
- name: Run Linters | ||
- 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: | | ||
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/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 | ||
tools/bootstrap/python -m tools.maplint.source --github | ||
tools/build/build --ci lint tgui-test | ||
tools/bootstrap/python -m define_sanity.check | ||
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: success() || failure() | ||
with: | ||
outputFile: output-annotations.txt | ||
|
||
odlint: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: "Lint with OpenDream" | ||
runs-on: ubuntu-22.04 | ||
concurrency: | ||
group: odlint-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: robinraju/[email protected] | ||
with: | ||
repository: "OpenDreamProject/OpenDream" | ||
tag: "latest" | ||
fileName: "DMCompiler_linux-x64.tar.gz" | ||
extract: true | ||
- name: Check Define Sanity | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
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 tgstation.dme --suppress-unimplemented --define=CIBUILDING | bash tools/ci/annotate_od.sh | ||
- name: Run Map Checks | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: | | ||
./DMCompiler_linux-x64/DMCompiler tgstation.dme --suppress-unimplemented --define=CIBUILDING | ||
tools/bootstrap/python -m mapmerge2.dmm_test | ||
tools/bootstrap/python -m tools.maplint.source | ||
- 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 | ||
|
||
compile_all_maps: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: Compile Maps | ||
needs: [collect_data] | ||
runs-on: ubuntu-20.04 | ||
concurrency: | ||
group: compile_all_maps-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Restore BYOND cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/BYOND | ||
key: ${{ runner.os }}-byond | ||
key: ${{ runner.os }}-byond-${{ hashFiles('dependencies.sh') }} | ||
- name: Compile All Maps | ||
run: | | ||
bash tools/ci/install_byond.sh | ||
|
@@ -119,16 +146,15 @@ jobs: | |
collect_data: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: Collect data for other tasks | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
outputs: | ||
maps: ${{ steps.map_finder.outputs.maps }} | ||
alternate_tests: ${{ steps.alternate_test_finder.outputs.alternate_tests }} | ||
max_required_byond_client: ${{ steps.max_required_byond_client.outputs.max_required_byond_client }} | ||
concurrency: | ||
group: find_all_maps-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Find Maps | ||
id: map_finder | ||
run: | | ||
|
@@ -151,29 +177,26 @@ jobs: | |
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: Integration Tests | ||
needs: [collect_data] | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
map: ${{ fromJSON(needs.collect_data.outputs.maps).paths }} | ||
concurrency: | ||
group: run_all_tests-${{ github.head_ref || github.run_id }}-${{ matrix.map }} | ||
cancel-in-progress: true | ||
|
||
uses: ./.github/workflows/run_integration_tests.yml | ||
with: | ||
map: ${{ matrix.map }} | ||
max_required_byond_client: ${{needs.collect_data.outputs.max_required_byond_client}} | ||
|
||
run_alternate_tests: | ||
if: "!contains(github.event.head_commit.message, '[ci skip]') && needs.find_all_maps.outputs.alternate_tests != '[]'" | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') && needs.collect_data.outputs.alternate_tests != '[]' ) | ||
name: Alternate Tests | ||
needs: [collect_data] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
setup: ${{ fromJSON(needs.collect_data.outputs.alternate_tests) }} | ||
concurrency: | ||
group: run_all_tests-${{ github.head_ref || github.run_id }}-${{ matrix.setup.major }}.${{ matrix.setup.minor }}-${{ matrix.setup.map }} | ||
cancel-in-progress: true | ||
|
||
uses: ./.github/workflows/run_integration_tests.yml | ||
with: | ||
map: ${{ matrix.setup.map }} | ||
|
@@ -182,23 +205,27 @@ jobs: | |
max_required_byond_client: ${{needs.collect_data.outputs.max_required_byond_client}} | ||
|
||
check_alternate_tests: | ||
if: "!contains(github.event.head_commit.message, '[ci skip]') && needs.find_all_maps.outputs.alternate_tests != '[]'" | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') && needs.collect_data.outputs.alternate_tests != '[]' ) | ||
name: Check Alternate Tests | ||
needs: [run_alternate_tests] | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- run: echo Alternate tests passed. | ||
|
||
compare_screenshots: | ||
if: "!contains(github.event.head_commit.message, '[ci skip]') && (success() || failure())" | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') && (success() || failure()) ) | ||
needs: [run_all_tests, run_alternate_tests] | ||
name: Compare Screenshot Tests | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup directory | ||
run: mkdir -p artifacts | ||
# If we ever add more artifacts, this is going to break, but it'll be obvious. | ||
- name: Download screenshot tests | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: artifacts | ||
- name: ls -R | ||
|
@@ -219,7 +246,7 @@ jobs: | |
echo ${{ github.event.pull_request.number }} > artifacts/screenshot_comparisons/pull_request_number.txt | ||
- name: Upload bad screenshots | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: bad-screenshots | ||
path: artifacts/screenshot_comparisons | ||
|
@@ -229,19 +256,17 @@ jobs: | |
name: Windows Build | ||
needs: [collect_data] | ||
runs-on: windows-latest | ||
concurrency: | ||
group: test_windows-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Restore Yarn cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: tgui/.yarn/cache | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('tgui/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
${{ runner.os }}-yarn- | ||
- name: Compile | ||
run: pwsh tools/ci/build.ps1 | ||
env: | ||
|
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
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
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
Oops, something went wrong.