Skip to content

Add UserServiceTests #17

Add UserServiceTests

Add UserServiceTests #17

Workflow file for this run

name: Build and run unit tests
env:
DOTNET_VERSION: '10.x'
on:
push:
branches-ignore:
- 'main'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Set up dependency caching for faster builds
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Run Tests
run: dotnet test --no-restore --verbosity normal