Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

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