Skip to content
thesarfo

Concept

GitHub Actions Workflow

A working GitHub Actions workflow for building and testing a .NET 8 solution.

views 0

Build and test a .NET 8 solution

name: Build and Test BexGh Project
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: |
dotnet restore BuildersExchangeCommerceApp.sln
- name: Build the solution
run: |
dotnet build BuildersExchangeCommerceApp.sln --configuration Release --no-restore
- name: Run tests
run: |
dotnet test BuildersExchangeCommerceApp.sln --configuration Release --no-build --verbosity normal