1
0

build-test-debug.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. name: Build & Test Debug
  2. on:
  3. push:
  4. branches: [ master, staging, stable ]
  5. merge_group:
  6. pull_request:
  7. types: [ opened, reopened, synchronize, ready_for_review ]
  8. branches: [ master, staging, stable ]
  9. jobs:
  10. build:
  11. if: github.actor != 'PJBot' && github.event.pull_request.draft == false
  12. strategy:
  13. matrix:
  14. os: [ubuntu-latest]
  15. runs-on: ${{ matrix.os }}
  16. steps:
  17. - name: Checkout Master
  18. uses: actions/checkout@v3.6.0
  19. - name: Setup Submodule
  20. run: |
  21. git submodule update --init --recursive
  22. - name: Pull engine updates
  23. uses: space-wizards/submodule-dependency@v0.1.5
  24. - name: Update Engine Submodules
  25. run: |
  26. cd RobustToolbox/
  27. git submodule update --init --recursive
  28. - name: Setup .NET Core
  29. uses: actions/setup-dotnet@v3.2.0
  30. with:
  31. dotnet-version: 9.0.x
  32. - name: Install dependencies
  33. run: dotnet restore
  34. - name: Build Project
  35. run: dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable /m
  36. - name: Run Content.Tests
  37. run: dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0
  38. - name: Run Content.IntegrationTests
  39. shell: pwsh
  40. run: |
  41. $env:DOTNET_gcServer=1
  42. dotnet test --no-build --configuration DebugOpt Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed
  43. ci-success:
  44. name: Build & Test Debug
  45. needs:
  46. - build
  47. runs-on: ubuntu-latest
  48. steps:
  49. - name: CI succeeded
  50. run: exit 0