35 lines
714 B
YAML
35 lines
714 B
YAML
name: CI
|
|
|
|
"on":
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: "10.0.x"
|
|
|
|
- name: Restore
|
|
run: dotnet restore server/Vanguard.slnx
|
|
|
|
- name: Test
|
|
run: dotnet test server/Vanguard.slnx --nologo --no-restore
|
|
|
|
- name: Validate content
|
|
run: dotnet run --project server/src/Vanguard.Cli -- validate
|
|
|
|
- name: Check translations
|
|
run: dotnet run --project server/src/Vanguard.Cli -- translations check
|