Skip to content

chore: add CI workflow for main branch #2

chore: add CI workflow for main branch

chore: add CI workflow for main branch #2

Workflow file for this run

name: Deploy .NET App to Local Kubespray Cluster
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build project
run: dotnet build --configuration Release --no-restore
- name: Test project
run: dotnet test --configuration Release --no-build