Skip to content

add PR validation github action command #4

add PR validation github action command

add PR validation github action command #4

Workflow file for this run

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