diff --git a/.github/workflows/PR_validation.yml b/.github/workflows/PR_validation.yml new file mode 100644 index 0000000..94a6375 --- /dev/null +++ b/.github/workflows/PR_validation.yml @@ -0,0 +1,34 @@ +name: PR Validation + +on: + pull_request: + branches: + - main +jobs: + validate: + name: Build and Test + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0' + + - name: Clean Project + run: dotnet clean + + - name: Restore Dependencies + run: dotnet restore + + - name: Build Project + run: dotnet build --no-restore --configuration Release + + ##- name: Run Unit Tests + #run: dotnet test --no-build --logger "trx;LogFileName=TestResults.trx" --verbosity detailed + + # - name: Run Code Formatter + # run: dotnet format --check