From 175d80fdf2295fdb03834d9de62e5b039e2b9694 Mon Sep 17 00:00:00 2001 From: Chiedo John <2156688+chiedo@users.noreply.github.com> Date: Thu, 14 Jan 2021 09:03:36 -0500 Subject: [PATCH] Run Windows tests on windows PRs (#17301) Run Windows tests on PRs with the windows label Co-authored-by: chiedo --- .github/workflows/test-windows.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index 330d0a15066e..112c20b28978 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -4,12 +4,14 @@ name: Node.js Tests - Windows on: workflow_dispatch: + pull_request: schedule: - cron: '50 19 * * *' # once a day at 19:50 UTC / 11:50 PST jobs: test: runs-on: windows-latest + if: (github.event_name != 'pull_request') || (github.event_name == 'pull_request' && (contains(github.event.pull_request.labels.*.name, 'Windows') || contains(github.event.pull_request.labels.*.name, 'windows'))) strategy: fail-fast: false matrix: