devops: add basic .NET CI validation (#99)
This commit is contained in:
Родитель
54d9f18432
Коммит
dd491f725a
|
@ -0,0 +1,27 @@
|
|||
name: Test .NET
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Test .NET
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
# Nerdbank Git Versioning used by this project
|
||||
# requires full clone (i.e. not the shallow default of GitHub Actions)
|
||||
fetch-depth: 0
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '8.0.100'
|
||||
- name: Build
|
||||
run: ./BuildAndTest.cmd
|
|
@ -20,7 +20,7 @@ public class SecretMaskerTests
|
|||
public void SecretMasker_Version()
|
||||
{
|
||||
Version version = SecretMasker.Version;
|
||||
version.ToString().Should().Be("1.7.0");
|
||||
version.ToString().Should().Be("1.9.0");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
|
Загрузка…
Ссылка в новой задаче