43 lines
889 B
YAML
43 lines
889 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: tests-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: Release build and tests
|
|
runs-on: windows-latest
|
|
timeout-minutes: 15
|
|
env:
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
DOTNET_NOLOGO: true
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up .NET 10 SDK
|
|
uses: actions/setup-dotnet@v6
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore Yacplayer.sln
|
|
|
|
- name: Build
|
|
run: dotnet build Yacplayer.sln --configuration Release --no-restore
|
|
|
|
- name: Run tests
|
|
run: dotnet test Yacplayer.sln --configuration Release --no-build
|