dotnet.yml 459 B

12345678910111213141516171819202122232425
  1. name: .NET
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Setup .NET
  13. uses: actions/setup-dotnet@v1
  14. with:
  15. dotnet-version: 5.0.x
  16. - name: Restore dependencies
  17. run: dotnet restore
  18. - name: Build
  19. run: dotnet build --no-restore
  20. - name: Test
  21. run: dotnet test --no-build --verbosity normal