Skip to content

Commit 31b0a52

Browse files
committed
Add condition in normal tests to avoid pre release tests on all PR's
1 parent 0517272 commit 31b0a52

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111

1212
jobs:
1313
tests:
14+
# Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR)
15+
# Will still run for each push to bump-meilisearch-v*
16+
if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v')
1417
runs-on: ubuntu-latest
1518
strategy:
1619
fail-fast: false
@@ -41,6 +44,9 @@ jobs:
4144
run: yarn run lint
4245

4346
cypress-run:
47+
# Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR)
48+
# Will still run for each push to bump-meilisearch-v*
49+
if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v')
4450
runs-on: ubuntu-latest
4551
# Browser on which the tests are run
4652
container: cypress/browsers:node12.18.3-chrome87-ff82

0 commit comments

Comments
 (0)