Skip to content

feat(tests): add basic test setup #23

feat(tests): add basic test setup

feat(tests): add basic test setup #23

Workflow file for this run

name: Build Library
on:
push:
paths-ignore:
- '**/*.md'
branches:
- main
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'
jobs:
build:
name: build-and-test-${{matrix.os}}
runs-on: ${{ matrix.os }}
env:
BUILD_RUNTIME: ${{ matrix.os == 'ubuntu-latest' && 'linux-x64' || 'windows-x64' }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore --runtime $BUILD_RUNTIME
- name: Test
run: dotnet test --no-restore --configuration Release --runtime $BUILD_RUNTIME