Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyd8 authored Nov 18, 2024
1 parent 980205b commit 396c8f6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ASP.NET Core CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore ./backend/backend.csproj

- name: Build the application
run: dotnet build ./backend/backend.csproj --configuration Release

- name: Run unit tests
run: dotnet test ./backend/backend.csproj --configuration Release --no-build --verbosity normal

0 comments on commit 396c8f6

Please sign in to comment.