Skip to content

Commit

Permalink
[chore] Fix windows test to run on push to main (#16465)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>

Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu committed Nov 24, 2022
1 parent ec725ec commit 1ab8719
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-and-test-windows.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: build-and-test-windows
on:
push:
branches: [ main ]
branches:
- 'main'
- 'releases/**'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
pull_request:
Expand Down Expand Up @@ -31,7 +33,7 @@ jobs:
- internal
- other
runs-on: windows-latest
if: ${{ github.actor != 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'Run Windows') }}
if: ${{ github.actor != 'dependabot[bot]' && (contains(github.event.pull_request.labels.*.name, 'Run Windows') || github.event_name == 'push') }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand All @@ -56,7 +58,7 @@ jobs:
- name: Run Unit tests
run: make -j2 gotest GROUP=${{ matrix.group }}
windows-unittest:
if: ${{ github.actor != 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'Run Windows') }}
if: ${{ github.actor != 'dependabot[bot]' && (contains(github.event.pull_request.labels.*.name, 'Run Windows') || github.event_name == 'push') }}
runs-on: windows-latest
needs: [windows-unittest-matrix]
steps:
Expand Down

0 comments on commit 1ab8719

Please sign in to comment.