pull-request-test.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ################################################################################
  2. ### Pull Request Test
  3. ### Executes tests to ensure that the pull request being submitted is valid.
  4. ### - Only runs on pull requests made to the `develop` branch
  5. ### - Only runs if the pull request was opened or synchronized
  6. ################################################################################
  7. name: Pull Request Test
  8. on:
  9. pull_request:
  10. branches:
  11. - develop
  12. - main
  13. types:
  14. - opened
  15. - synchronize
  16. jobs:
  17. test:
  18. runs-on: ubuntu-latest
  19. steps:
  20. - name: Clone Repository
  21. uses: actions/checkout@v4
  22. - name: Setup DotNet
  23. uses: actions/setup-dotnet@v4
  24. with:
  25. dotnet-version: 8.0.x
  26. - name: Setup xvfb
  27. run: |
  28. sudo apt-get update
  29. sudo apt-get install -y xvfb
  30. - name: Test MonoGame.Extended
  31. run: |
  32. xvfb-run -a -s "-screen 0 1024x768x24" dotnet test MonoGame.Extended.sln --nologo --verbosity minimal --configuration Release