dotnet.yml 762 B

123456789101112131415161718192021222324252627282930313233
  1. # This workflow will build a .NET project
  2. # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
  3. name: .NET
  4. on:
  5. push:
  6. branches: [ "main" ]
  7. pull_request:
  8. branches: [ "main" ]
  9. jobs:
  10. build:
  11. permissions:
  12. contents: read
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v4
  16. - name: Setup .NET
  17. uses: actions/setup-dotnet@v4
  18. with:
  19. dotnet-version: 8.0.x
  20. - name: Restore dependencies
  21. run: dotnet restore
  22. working-directory: ExcelORM
  23. - name: Build
  24. run: dotnet build --no-restore
  25. working-directory: ExcelORM
  26. - name: Test
  27. run: dotnet test --no-build --verbosity normal
  28. working-directory: ExcelORM