diff --git a/.github/workflows/kql-validations.yaml b/.github/workflows/kql-validations.yaml new file mode 100644 index 00000000000..2e515b8433d --- /dev/null +++ b/.github/workflows/kql-validations.yaml @@ -0,0 +1,29 @@ +name: KQL Validations +run-name: KQL Validations running on ${{ github.ref_name }} +on: + pull_request: + branches: + - master + # Allows to run workflow manually from the Actions tab + workflow_dispatch: +jobs: + KqlValidations: + runs-on: ubuntu-latest + env: + buildConfiguration: Release + dotnetSdkVersion: 6.0.x + PRNUM: ${{ github.event.pull_request.number }} + steps: + - uses: actions/checkout@v4 + - name: Use .NET Core SDK ${{ env.dotnetSdkVersion }} + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ env.dotnetSdkVersion }} + - name: Run KQL Validation tests + run: dotnet test .script/tests/KqlvalidationsTests/Kqlvalidations.Tests.csproj --configuration ${{ env.buildConfiguration }} + env: + GITHUBAPPID: ${{ secrets.APPLICATION_ID }} + GITHUBAPPINSTALLATIONID: ${{ secrets.APPLICATION_INSTALLATION_ID }} + GITHUBAPPPRIVATEKEY: ${{ secrets.APPLICATION_PRIVATE_KEY }} + SYSTEM_PULLREQUEST_ISFORK: ${{ github.event.pull_request.head.repo.fork }} + \ No newline at end of file