Update build-test-debug.yml #31
This file contains hidden or 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
| # SPDX-FileCopyrightText: 2020 ComicIronic <comicironic@gmail.com> | |
| # SPDX-FileCopyrightText: 2020 Tyler Young <tyler.young@impromptu.ninja> | |
| # SPDX-FileCopyrightText: 2020 Ygg01 <y.laughing.man.y@gmail.com> | |
| # SPDX-FileCopyrightText: 2021 Javier Guardia Fernández <DrSmugleaf@users.noreply.github.com> | |
| # SPDX-FileCopyrightText: 2021 Swept <sweptwastaken@protonmail.com> | |
| # SPDX-FileCopyrightText: 2021 Vera Aguilera Puerto <gradientvera@outlook.com> | |
| # SPDX-FileCopyrightText: 2021 mirrorcult <lunarautomaton6@gmail.com> | |
| # SPDX-FileCopyrightText: 2022 0x6273 <0x40@keemail.me> | |
| # SPDX-FileCopyrightText: 2022 Kara D <lunarautomaton6@gmail.com> | |
| # SPDX-FileCopyrightText: 2022 Zoldorf <silvertorch5@gmail.com> | |
| # SPDX-FileCopyrightText: 2022 wrexbe <81056464+wrexbe@users.noreply.github.com> | |
| # SPDX-FileCopyrightText: 2023 DrSmugleaf <DrSmugleaf@users.noreply.github.com> | |
| # SPDX-FileCopyrightText: 2023 Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> | |
| # SPDX-FileCopyrightText: 2023 Moony <moony@hellomouse.net> | |
| # SPDX-FileCopyrightText: 2023 Pieter-Jan Briers <pieterjan.briers+git@gmail.com> | |
| # SPDX-FileCopyrightText: 2023 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> | |
| # SPDX-FileCopyrightText: 2024 MilenVolf <63782763+MilenVolf@users.noreply.github.com> | |
| # SPDX-FileCopyrightText: 2024 Tadeo <td12233a@gmail.com> | |
| # SPDX-FileCopyrightText: 2025 Tay <td12233a@gmail.com> | |
| # SPDX-FileCopyrightText: 2025 pa.pecherskij <pa.pecherskij@interfax.ru> | |
| # SPDX-FileCopyrightText: 2025 slarticodefast <161409025+slarticodefast@users.noreply.github.com> | |
| # SPDX-FileCopyrightText: 2025 taydeo <td12233a@gmail.com> | |
| # | |
| # SPDX-License-Identifier: MIT | |
| name: Build & Test Debug | |
| on: | |
| push: | |
| branches: [ master, staging, stable ] | |
| merge_group: | |
| pull_request: | |
| types: [ opened, reopened, synchronize, ready_for_review ] | |
| branches: [ master, staging, stable ] | |
| env: | |
| DOTNET_INSTALL_DIR: "./.dotnet" | |
| jobs: | |
| build: | |
| if: github.actor != 'funkystationbot' && github.event.pull_request.draft == false | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout Master | |
| uses: actions/checkout@v4.2.2 | |
| - name: Setup Submodule | |
| run: | | |
| git submodule update --init --recursive | |
| - name: Pull engine updates | |
| uses: space-wizards/submodule-dependency@v0.1.5 | |
| - name: Update Engine Submodules | |
| run: | | |
| cd RobustToolbox/ | |
| git submodule update --init --recursive | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v4.1.0 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Install dependencies | |
| run: dotnet restore | |
| - name: Build Project | |
| run: dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable /m | |
| - name: Run Content.Tests | |
| run: dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0 | |
| - name: Run Content.IntegrationTests | |
| shell: pwsh | |
| run: | | |
| $env:DOTNET_gcServer=1 | |
| dotnet test --no-build --configuration DebugOpt Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed | |
| ci-success: | |
| name: Build & Test Debug | |
| needs: | |
| - build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: CI succeeded | |
| run: exit 0 |