From c3fdb6c80e49c32ec9d3dc451f202437dbf4fefd Mon Sep 17 00:00:00 2001 From: Gandalf Date: Wed, 24 Mar 2021 20:51:40 +0000 Subject: [PATCH] Holy shit github (#4376) --- .github/ISSUE_TEMPLATE/feature_request.md | 16 ++---------- .github/workflows/ci_suite.yml | 27 +++++++++++++------- .github/workflows/compile_changelogs.yml | 2 +- .github/workflows/docker_publish.yml | 22 ++++++++++++++++ .github/workflows/gbp.yml | 14 ++++++++++ .github/workflows/generate_documentation.yml | 3 ++- .github/workflows/round_id_linker.yml | 2 +- .github/workflows/stale.yml | 12 ++++----- .github/workflows/update_tgs_dmapi.yml | 4 +-- 9 files changed, 68 insertions(+), 34 deletions(-) create mode 100644 .github/workflows/docker_publish.yml create mode 100644 .github/workflows/gbp.yml diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 293b573ffd4..11687283df4 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,19 +1,7 @@ --- name: Feature request about: Suggest an idea for this project ---- - -## About The Feature Request - - - - - -## Why It's Good For The Game - +--- - +Feature requests are not handled in the repository. The best place to discuss these ideas would be on the /tg/station 13 forums here: https://tgstation13.org/phpBB/viewforum.php?f=9&sid=5153c1c704a4fb1006bf7a265e45e03f diff --git a/.github/workflows/ci_suite.yml b/.github/workflows/ci_suite.yml index 1888f18bbde..497ecc19a35 100644 --- a/.github/workflows/ci_suite.yml +++ b/.github/workflows/ci_suite.yml @@ -8,8 +8,9 @@ on: - master jobs: run_linters: + if: "!contains(github.event.head_commit.message, '[ci skip]')" name: Run Linters - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - name: Setup cache @@ -22,7 +23,7 @@ jobs: pip3 install setuptools bash tools/ci/install_node.sh bash tools/ci/install_spaceman_dmm.sh dreamchecker - pip3 install -r tools/requirements.txt + tools/bootstrap/python -c '' - name: Run Linters run: | bash tools/ci/check_filedirs.sh tgstation.dme @@ -30,6 +31,7 @@ jobs: find . -name "*.php" -print0 | xargs -0 -n1 php -l find . -name "*.json" -not -path "*/node_modules/*" -print0 | xargs -0 python3 ./tools/json_verifier.py tgui/bin/tgui --lint + tgui/bin/tgui --test bash tools/ci/check_grep.sh tools/bootstrap/python -m dmi.test tools/bootstrap/python -m mapmerge2.dmm_test @@ -41,8 +43,9 @@ jobs: outputFile: output-annotations.txt compile_all_maps: + if: "!contains(github.event.head_commit.message, '[ci skip]')" name: Compile Maps - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - name: Setup cache @@ -55,12 +58,14 @@ jobs: bash tools/ci/install_byond.sh source $HOME/BYOND/byond/bin/byondsetup python3 tools/ci/template_dm_generator.py - tgui/bin/tgui --build - bash tools/ci/dm.sh -DCIBUILDING -DCITESTING -DALL_MAPS tgstation.dme + tools/build/build + env: + CBT_BUILD_MODE : ALL_MAPS run_all_tests: + if: "!contains(github.event.head_commit.message, '[ci skip]')" name: Integration Tests - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 services: mysql: image: mysql:latest @@ -87,23 +92,27 @@ jobs: run: | sudo dpkg --add-architecture i386 sudo apt update || true - sudo apt install libssl1.1:i386 + sudo apt install -o APT::Immediate-Configure=false libssl1.1:i386 bash tools/ci/install_rust_g.sh - name: Compile and run tests run: | bash tools/ci/install_byond.sh source $HOME/BYOND/byond/bin/byondsetup - tgui/bin/tgui --build - bash tools/ci/dm.sh -DCIBUILDING tgstation.dme + tools/build/build bash tools/ci/run_server.sh + env: + CBT_BUILD_MODE: TEST_RUN test_windows: + if: "!contains(github.event.head_commit.message, '[ci skip]')" name: Windows Build runs-on: windows-latest steps: - uses: actions/checkout@v2 - name: Compile run: pwsh tools/ci/build.ps1 + env: + DM_EXE: "C:\\byond\\bin\\dm.exe" - name: Create artifact run: | md deploy diff --git a/.github/workflows/compile_changelogs.yml b/.github/workflows/compile_changelogs.yml index c8756f0d289..b0e15788158 100644 --- a/.github/workflows/compile_changelogs.yml +++ b/.github/workflows/compile_changelogs.yml @@ -7,7 +7,7 @@ on: jobs: compile: name: "Compile changelogs" - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: "Check for CHANGELOG_ENABLER secret and pass true to output if it exists to be checked by later steps" id: value_holder diff --git a/.github/workflows/docker_publish.yml b/.github/workflows/docker_publish.yml new file mode 100644 index 00000000000..695f2f027e8 --- /dev/null +++ b/.github/workflows/docker_publish.yml @@ -0,0 +1,22 @@ +name: Docker Build + +on: + push: + branches: + - master + +jobs: + publish: + if: "!contains(github.event.head_commit.message, '[ci skip]')" + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: Build and Publish Docker Image to Registry + uses: elgohr/Publish-Docker-Github-Action@master + with: + name: tgstation/tgstation + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + dockerfile: Dockerfile + tags: "latest" diff --git a/.github/workflows/gbp.yml b/.github/workflows/gbp.yml new file mode 100644 index 00000000000..19a6b389ce5 --- /dev/null +++ b/.github/workflows/gbp.yml @@ -0,0 +1,14 @@ +name: GBP +on: + pull_request_target: + types: [closed, opened] +jobs: + gbp: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: GBP action + uses: tgstation/gbp-action@master + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/generate_documentation.yml b/.github/workflows/generate_documentation.yml index 9407693d4fe..c1b7a2d5e13 100644 --- a/.github/workflows/generate_documentation.yml +++ b/.github/workflows/generate_documentation.yml @@ -5,7 +5,8 @@ on: - master jobs: generate_documentation: - runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[ci skip]')" + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - name: Setup cache diff --git a/.github/workflows/round_id_linker.yml b/.github/workflows/round_id_linker.yml index cfb85052788..5aede3503d1 100644 --- a/.github/workflows/round_id_linker.yml +++ b/.github/workflows/round_id_linker.yml @@ -5,7 +5,7 @@ on: jobs: link_rounds: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: tgstation/round_linker@master with: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 9c52d224592..702d368db56 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,14 +7,14 @@ on: jobs: stale: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/stale@v3.0.7 + - uses: actions/stale@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-pr-message: "This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 14 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself" - days-before-stale: 14 - days-before-close: 14 + stale-pr-message: "This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself" + days-before-stale: 7 + days-before-close: 7 stale-pr-label: 'Stale' - exempt-pr-labels: 'RED LABEL,Upstream PR Merged,Fix,Test Merged' + exempt-pr-label: 'RED LABEL' diff --git a/.github/workflows/update_tgs_dmapi.yml b/.github/workflows/update_tgs_dmapi.yml index be33046d4f2..43c7a5ce650 100644 --- a/.github/workflows/update_tgs_dmapi.yml +++ b/.github/workflows/update_tgs_dmapi.yml @@ -7,7 +7,7 @@ on: jobs: update-dmapi: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 name: Update the TGS DMAPI steps: - name: Clone @@ -44,4 +44,4 @@ jobs: pr_body: "This pull request updates the TGS DMAPI to the latest version. Please note any breaking or unimplemented changes before merging." pr_label: "Tools" pr_allow_empty: false - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.COMFY_ORANGE_PAT }}