Skip to content

Commit

Permalink
add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
luc1an24 committed Nov 24, 2024
1 parent 193dc7d commit 243600a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/dotnet-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: .NET Tests

on:
push:
branches:
- '**'
pull_request:
branches:
- main

jobs:
build-and-test:
runs-on: ubuntu-latest

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

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'

- name: Restore dependencies
run: dotnet restore

- name: Build the solution
run: dotnet build --no-restore --configuration Release

- name: Run tests
run: dotnet test --no-build --verbosity normal

0 comments on commit 243600a

Please sign in to comment.