Skip to content

Commit

Permalink
Merge pull request #234 from SynthTwo/upstream-squeakeul
Browse files Browse the repository at this point in the history
Another upstream merge
  • Loading branch information
SynthTwo authored Feb 13, 2025
2 parents 4ddbf8b + 9ff3b8d commit c007d5b
Show file tree
Hide file tree
Showing 761 changed files with 10,727 additions and 3,954 deletions.
3 changes: 1 addition & 2 deletions .github/alternate_byond_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# 500.1337: runtimestation
# 516.1638: runtimestation;516
# Lowest supported version
# NOVA EDIT - Original: 515.1627: runtimestation
515.1637: runtimestation
515.1642: runtimestation
# Beta version
516.1648: runtimestation;516
21 changes: 5 additions & 16 deletions .github/workflows/ci_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,31 +200,20 @@ jobs:
name: Integration Tests
needs: collect_data

strategy:
fail-fast: false
matrix:
map: ${{ fromJSON(needs.collect_data.outputs.maps).paths }}

uses: ./.github/workflows/run_integration_tests.yml
uses: ./.github/workflows/perform_regular_version_tests.yml
with:
map: ${{ matrix.map }}
maps: ${{ needs.collect_data.outputs.maps }}
max_required_byond_client: ${{needs.collect_data.outputs.max_required_byond_client}}

run_alternate_tests:
if: 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) }}

uses: ./.github/workflows/run_integration_tests.yml
uses: ./.github/workflows/perform_alternate_version_tests.yml
with:
map: ${{ matrix.setup.map }}
major: ${{ matrix.setup.major }}
minor: ${{ matrix.setup.minor }}
max_required_byond_client: ${{ matrix.setup.max_client_version || needs.collect_data.outputs.max_required_byond_client }}
alternate_tests: ${{ needs.collect_data.outputs.alternate_tests }}
default_max_required_byond_client: ${{ needs.collect_data.outputs.max_required_byond_client }}

compare_screenshots:
if: needs.collect_data.outputs.alternate_tests == '[]' || needs.run_alternate_tests.result == 'success'
Expand Down
28 changes: 26 additions & 2 deletions .github/workflows/gbp.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
name: GBP
name: Label and GBP
on:
pull_request_target:
types: [closed, opened]
types: [closed, opened, synchronize]
jobs:
# labeler must run before gbp because gbp calculates itself based on labels
labeler:
runs-on: ubuntu-latest
if: github.event.action == 'opened' || github.event.action == 'synchronize'
permissions:
pull-requests: write # to apply labels
issues: write # to apply labels
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run Auto Labeler
uses: actions/github-script@v7
with:
script: |
const { get_updated_label_set } = await import('${{ github.workspace }}/tools/pull_request_hooks/autoLabel.js');
const new_labels = await get_updated_label_set({ github, context });
github.rest.issues.setLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: new_labels,
});
console.log(`Labels updated: ${new_labels}`);
gbp:
runs-on: ubuntu-latest
if: github.event.action == 'opened' || github.event.action == 'closed'
steps:
- name: "Check for ACTION_ENABLER secret and pass true to output if it exists to be checked by later steps"
id: value_holder
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/perform_alternate_version_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run Alternate BYOND Version Tests
on:
workflow_call:
inputs:
alternate_tests:
required: true
type: string
default_max_required_byond_client:
required: true
type: string

jobs:
run:
uses: ./.github/workflows/run_integration_tests.yml

strategy:
fail-fast: false
matrix:
setup: ${{ fromJSON(inputs.alternate_tests) }}

with:
map: ${{ matrix.setup.map }}
major: ${{ matrix.setup.major }}
minor: ${{ matrix.setup.minor }}
max_required_byond_client: ${{ matrix.setup.max_client_version || inputs.default_max_required_byond_client }}
23 changes: 23 additions & 0 deletions .github/workflows/perform_regular_version_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run Regular BYOND Version Tests
on:
workflow_call:
inputs:
maps:
required: true
type: string
max_required_byond_client:
required: true
type: string

jobs:
run:
uses: ./.github/workflows/run_integration_tests.yml

strategy:
fail-fast: false
matrix:
map: ${{ fromJSON(inputs.maps).paths }}

with:
map: ${{ matrix.map }}
max_required_byond_client: ${{ inputs.max_required_byond_client }}
6 changes: 6 additions & 0 deletions .github/workflows/run_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ on:

jobs:
run_integration_tests:
# If `inputs.major` is specified, this will output `Run Tests (major.minor; map; max)`.
# For example, `Run Tests (515.1627; runtimestation; 515)`.
#
# Otherwise, it will output `Run Tests (map; max)`.
# For example, `Run Tests (runtimestation; 515)`.
name: Run Tests (${{ inputs.major && format('{0}.{1}; ', inputs.major, inputs.minor) || '' }}${{ inputs.map }}; ${{ inputs.max_required_byond_client }})
runs-on: ubuntu-latest
timeout-minutes: 20 # NOVA EDIT CHANGE - Original: timeout-minutes: 15
services:
Expand Down
2 changes: 1 addition & 1 deletion .tgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
version: 1
# The BYOND version to use (kept in sync with dependencies.sh by the "TGS Test Suite" CI job)
# Must be interpreted as a string, keep quoted
byond: "515.1637"
byond: "515.1647"
# Folders to create in "<instance_path>/Configuration/GameStaticFiles/"
static_files:
# Config directory should be static
Expand Down
Loading

0 comments on commit c007d5b

Please sign in to comment.