Files
SPT-Server-Build/.github/workflows/test.yaml
T
Refringe 4b6f6dcb17 Initial Test Workflow
Doesn't include caching for dependencies, but we don't really have any yet...
2025-01-07 21:11:26 -05:00

34 lines
667 B
YAML

name: Run Tests
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0
- name: Restore Dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run Tests
run: dotnet test --configuration Release --no-restore --verbosity normal