Run non larger-runner CI tests on all PRs (#3733)

### Description

- Run tests (except larger-runner jobs) on PRs where base branch is not
main

---------

Co-authored-by: Le Yu <leyu00@gmail.com>
pull/3748/head
Yorke Rhodes 7 months ago committed by GitHub
parent be43b0fd91
commit 6a5d7e8ff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .github/workflows/test.yml

@ -5,7 +5,8 @@ on:
push:
branches: [main]
pull_request:
branches: [main]
branches:
- '*' # run against all branches
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@ -175,6 +176,7 @@ jobs:
e2e-matrix:
runs-on: larger-runner
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main')
needs: [yarn-build]
strategy:
matrix:
@ -264,6 +266,7 @@ jobs:
cli-e2e:
runs-on: larger-runner
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main')
needs: [yarn-build]
strategy:
matrix:

Loading…
Cancel
Save