forked from Bubberstation/Bubberstation
-
Notifications
You must be signed in to change notification settings - Fork 24
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,538 changed files
with
147,980 additions
and
75,858 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
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 |
---|---|---|
|
@@ -23,3 +23,4 @@ reset_label = "GBP: Reset" | |
"Sound" = 3 | ||
"Sprites" = 3 | ||
"Unit Tests" = 6 | ||
"Wallening Revert Recovery" = 10 |
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
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,21 +13,35 @@ on: | |
merge_group: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
run_linters: | ||
start_gate: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: Start Gate | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Mandatory Empty Step | ||
run: exit 0 | ||
|
||
run_linters: | ||
name: Run Linters | ||
needs: start_gate | ||
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@v4 | ||
- name: Restore SpacemanDMM cache | ||
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@v4 | ||
with: | ||
|
@@ -53,18 +67,27 @@ jobs: | |
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 }}-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 | ||
cargo install ripgrep --features pcre2 | ||
bash tools/ci/install_ripgrep.sh | ||
tools/bootstrap/python -c '' | ||
- name: Give Linters A Go | ||
id: linter-setup | ||
|
@@ -81,8 +104,6 @@ jobs: | |
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 | ||
tools/bootstrap/python tools/ticked_file_enforcement/ticked_file_enforcement.py < tools/ticked_file_enforcement/schemas/modular_skyrat.json # SKYRAT EDIT ADDITION - modular tick enforcement | ||
tools/bootstrap/python tools/ticked_file_enforcement/ticked_file_enforcement.py < tools/ticked_file_enforcement/schemas/modular_zubbers.json # BUBBER EDIT ADDITION - modular tick enforcement | ||
- name: Check Define Sanity | ||
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: tools/bootstrap/python -m define_sanity.check | ||
|
@@ -93,6 +114,9 @@ jobs: | |
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
shell: bash | ||
run: ~/dreamchecker 2>&1 | bash tools/ci/annotate_dm.sh | ||
#- name: Run OpenDream - SKYRAT REMOVAL - DreamChecker is fine for us so far - SKYRAT TODO | ||
# 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: | | ||
|
@@ -118,20 +142,18 @@ jobs: | |
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] | ||
needs: collect_data | ||
runs-on: ubuntu-22.04 | ||
concurrency: | ||
group: compile_all_maps-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Restore BYOND cache | ||
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 | ||
|
@@ -144,16 +166,15 @@ jobs: | |
max-required-client-version: ${{needs.collect_data.outputs.max_required_byond_client}} | ||
|
||
collect_data: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: Collect data for other tasks | ||
needs: start_gate | ||
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@v4 | ||
- name: Find Maps | ||
|
@@ -175,52 +196,41 @@ jobs: | |
echo "max_required_byond_client=$(grep -Ev '^[[:blank:]]{0,}#{1,}|^[[:blank:]]{0,}$' .github/max_required_byond_client.txt | tail -n1)" >> $GITHUB_OUTPUT | ||
run_all_tests: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: Integration Tests | ||
needs: [collect_data] | ||
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: needs.collect_data.outputs.alternate_tests != '[]' | ||
name: Alternate Tests | ||
needs: [collect_data] | ||
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 }} | ||
major: ${{ matrix.setup.major }} | ||
minor: ${{ matrix.setup.minor }} | ||
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 != '[]' ) | ||
name: Check Alternate Tests | ||
needs: [run_alternate_tests] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- run: echo Alternate tests passed. | ||
|
||
compare_screenshots: | ||
if: "!contains(github.event.head_commit.message, '[ci skip]') && always()" | ||
needs: [run_all_tests, run_alternate_tests] | ||
if: needs.collect_data.outputs.alternate_tests == '[]' || needs.run_alternate_tests.result == 'success' | ||
needs: [ collect_data, 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@v4 | ||
- name: Setup directory | ||
|
@@ -254,13 +264,11 @@ jobs: | |
path: artifacts/screenshot_comparisons | ||
|
||
test_windows: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
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@v4 | ||
- name: Restore Yarn cache | ||
|
@@ -279,3 +287,11 @@ jobs: | |
with: | ||
dmb-location: tgstation.dmb | ||
max-required-client-version: ${{needs.collect_data.outputs.max_required_byond_client}} | ||
|
||
completion_gate: # Serves as a non-moving target for branch rulesets | ||
name: Completion Gate | ||
needs: [ test_windows, compare_screenshots, compile_all_maps, run_linters ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Mandatory Empty Step | ||
run: exit 0 |
Oops, something went wrong.