Upstream PR reversion #3
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 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> | |
| # SPDX-FileCopyrightText: 2024 Myra <vasilis@pikachu.systems> | |
| # SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com> | |
| # SPDX-FileCopyrightText: 2025 Pieter-Jan Briers <pieterjan.briers+git@gmail.com> | |
| # | |
| # SPDX-License-Identifier: AGPL-3.0-or-later | |
| name: Build & Test Debug | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: [ master, staging, stable ] | |
| merge_group: | |
| pull_request: | |
| types: [ opened, reopened, synchronize, ready_for_review ] | |
| branches: [ master, staging, stable ] | |
| jobs: | |
| build: | |
| if: 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 /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 |