Skip to content

Add unit tests and configure GitHub Actions CI #1

Add unit tests and configure GitHub Actions CI

Add unit tests and configure GitHub Actions CI #1

Workflow file for this run

name: Run Unit Tests
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
jobs:
test:
name: Build and run unit tests
runs-on: ubuntu-latest
steps:
- name: GitHub actions Workspace Cleaner
uses: jstone28/runner-workspace-cleaner@v1.0.0
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: Restore dependencies
run: dotnet restore
working-directory: ./ThreeByte.LinkLib
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./ThreeByte.LinkLib
- name: Run tests
run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx"
working-directory: ./ThreeByte.LinkLib