-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (31 loc) · 1.35 KB
/
Copy pathci.yml
File metadata and controls
42 lines (31 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: windows-latest
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 .\src\LocalProfanityCensor.DotNet\LocalProfanityCensor.DotNet.csproj
- name: Build
run: dotnet build .\src\LocalProfanityCensor.DotNet\LocalProfanityCensor.DotNet.csproj --configuration Release --no-restore
- name: CLI help smoke test
run: dotnet run --project .\src\LocalProfanityCensor.DotNet --configuration Release -- --help
- name: Validate starter dictionary
run: dotnet run --project .\src\LocalProfanityCensor.DotNet --configuration Release -- validate-dictionary .\src\LocalProfanityCensor.DotNet\Dictionaries\profanity.example.yml
- name: Install ffmpeg
run: choco install ffmpeg --no-progress -y
- name: Health check smoke test
run: dotnet run --project .\src\LocalProfanityCensor.DotNet --configuration Release -- health-check --mode mute --scope core --no-prompt
- name: Publish core payload smoke test
shell: pwsh
run: .\Deployment\Scripts\Publish-Core.ps1 -OutputRoot .\Deployment\artifacts-ci