From b79a390f36e2d90010dfc2fe4db2d605bcb64de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Climent?= Date: Wed, 31 Jul 2024 20:26:11 +0200 Subject: [PATCH] Update dotnet-test.yml --- .github/workflows/dotnet-test.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml index 924505b2d..f9339a76f 100644 --- a/.github/workflows/dotnet-test.yml +++ b/.github/workflows/dotnet-test.yml @@ -1,19 +1,14 @@ name: .NET Tests on: push: - paths: - - '**.cs' - - '**.csproj' pull_request: branches: [ "main" ] - paths: - - '**.cs' - - '**.csproj' workflow_dispatch: jobs: test-codebase: + if: ${{ (github.event_name == 'push' || github.event_name == 'pull_request') && (endsWith(github.event.head_commit.modified, '.cs') || endsWith(github.event.head_commit.modified, '.csproj')) }} || github.event_name == 'workflow_dispatch' runs-on: windows-latest # For a list of available runner types, refer to # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on