Skip to content

Commit 2efc305

Browse files
committed
Change host in pre release tests
1 parent 634dc2a commit 2efc305

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/pre-release-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
with:
134134
build: yarn playground:build
135135
start: yarn playground:ci
136-
env: env=ci
136+
env: env=prereleaseci
137137
- uses: actions/upload-artifact@v2
138138
if: failure()
139139
with:

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ jobs:
8181
with:
8282
config_file: .yamllint.yml
8383
cypress-run:
84+
# Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR)
85+
# Will still run for each push to bump-meilisearch-v*
86+
if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v')
8487
runs-on: ubuntu-latest
8588
container: cypress/browsers:node12.18.3-chrome87-ff82
8689
services:

cypress.env.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@
1919
"ci": {
2020
"adminUrl": "http://localhost:1337/admin/auth/login",
2121
"host": "http://meilisearch:7700"
22+
},
23+
"prereleaseci": {
24+
"adminUrl": "http://localhost:1337/admin/auth/login",
25+
"host": "http://localhost:7700"
2226
}
2327
}

0 commit comments

Comments
 (0)