Skip to content

Commit

Permalink
Move xunit to own flow to allow banner (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
virot authored Jan 17, 2025
1 parent 83a142c commit be461d5
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 42 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ jobs:
- name: Build Debug
run: msbuild TameMyCerts\TameMyCerts.csproj -property:Configuration=debug

- name: Build TameMyCerts.Tests
run: msbuild TameMyCerts.Tests\TameMyCerts.Tests.csproj -property:Configuration=debug

- name: Build ETW Manifest
run: msbuild Support.GenerateETWManifest\Support.GenerateETWManifest.csproj -property:Configuration=debug

Expand All @@ -42,41 +39,3 @@ jobs:
with:
name: build-TameMyCerts
path: TameMyCerts\bin\debug\net8.0-windows\

- name: Save Build TameMyCerts.Tests
uses: actions/upload-artifact@v4
with:
name: build-TameMyCerts.Tests
path: TameMyCerts.Tests\bin\debug\net8.0-windows\

xUnit:
name: xUnit tests
runs-on: windows-latest
needs: build

steps:

- uses: actions/checkout@v4

- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Install dependencies
run: dotnet restore TameMyCerts.Tests\TameMyCerts.Tests.csproj

- name: Download Build Output
uses: actions/download-artifact@v4
with:
name: build-TameMyCerts
path: TameMyCerts\bin\debug\net8.0-windows\

- name: Download build-TameMyCerts.Tests
uses: actions/download-artifact@v4
with:
name: build-TameMyCerts.Tests
path: TameMyCerts.Tests\bin\debug\net8.0-windows\

- name: Run xunit tests
run: dotnet test --no-build --verbosity minimal
38 changes: 38 additions & 0 deletions .github/workflows/xunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: XUnit tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
name: XUnit tests
runs-on: windows-latest

steps:

- uses: actions/checkout@v4

- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Install dependencies
run: dotnet restore

- name: Setup MSBuild Path
uses: microsoft/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

- name: Build Debug
run: msbuild TameMyCerts\TameMyCerts.csproj -property:Configuration=debug

- name: Build TameMyCerts.Tests
run: msbuild TameMyCerts.Tests\TameMyCerts.Tests.csproj -property:Configuration=debug

- name: Run xunit tests
run: dotnet test --no-build --verbosity minimal
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The "Tame My Certs" policy module for Active Directory Certificate Services certification authorities

![](https://github.com/Sleepw4lker/TameMyCerts/actions/workflows/main.yml/badge.svg)
![](https://github.com/Sleepw4lker/TameMyCerts/actions/workflows/main.yml/badge.svg?branch=main&event=push) ![](https://github.com/Sleepw4lker/TameMyCerts/actions/workflows/xunit.yml/badge.svg?branch=main&event=push)

TameMyCerts is a [policy module](https://docs.microsoft.com/en-us/windows/win32/seccrypto/certificate-services-architecture) for Microsoft [Active Directory Certificate Services (AD CS)](https://docs.microsoft.com/en-us/windows/win32/seccrypto/certificate-services) enterprise certification authorities that enables security automation for a lot of use cases in the PKI field.

Expand Down

0 comments on commit be461d5

Please sign in to comment.