From 5ff134b466efb24141604474643fde5cc7e5c377 Mon Sep 17 00:00:00 2001 From: tomek Date: Fri, 6 Sep 2024 16:40:22 +0200 Subject: [PATCH] Add CI for main branch --- .github/workflows/backend-build.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/backend-build.yml 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