diff --git a/.github/workflows/backend-build.yml b/.github/workflows/backend-build.yml new file mode 100644 index 0000000..71c8bdd --- /dev/null +++ b/.github/workflows/backend-build.yml @@ -0,0 +1,30 @@ +name: Build & Test + +on: + push: + branches: + - main + pull_request: + branches: + - main + +env: + DOTNET_VERSION: '8.0.x' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} + - name: Install dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Test + run: dotnet test --configuration Realese --no-build \ No newline at end of file