Detection Template Schema Validations running on 13518/merge #7647
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Detection Template Schema Validations | |
| run-name: Detection Template Schema Validations running on ${{ github.ref_name }} | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| # Allows to run workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| DetectionTemplateSchemaValidation: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| buildConfiguration: Release | |
| dotnetSdkVersion: 3.1.401 | |
| PRNUM: ${{ github.event.pull_request.number }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 # Need HEAD and parent for git diff | |
| - name: Use .NET Core SDK ${{ env.dotnetSdkVersion }} | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.dotnetSdkVersion }} | |
| - name: Run Detection template structure validation tests | |
| run: dotnet test .script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidation.Tests.csproj --configuration ${{ env.buildConfiguration }} | |