Skip to content

Commit

Permalink
Add CI for main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgasper committed Sep 6, 2024
1 parent d93e5ed commit 5ff134b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/backend-build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5ff134b

Please sign in to comment.