Skip to content

Add new GitHub Actions to do unit tests #1

Add new GitHub Actions to do unit tests

Add new GitHub Actions to do unit tests #1

Workflow file for this run

name: unit tests
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v4
# Install .NET SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
# Install SQL Server
- name: Setup SQL Server
run: docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=$MSSQL_PWD" -p 1433:1433 --name sql1 --hostname sql1 -d mcr.microsoft.com/mssql/server:2019-latest
# Perform unit tests
- name: Perform unit tests
run: dotnet test HotKeys2.Test -l "console;verbosity=normal" -v:q --nologo