-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI check translations now runs using the production build (#6627)
* CI check translations now runs using the production build * Add health check to mongo service * updated translations db script to work in prod * version bump --------- Co-authored-by: A happy cat <[email protected]>
- Loading branch information
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,11 +21,12 @@ jobs: | |
ports: | ||
- 9200/tcp | ||
options: -e="discovery.type=single-node" --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10 | ||
mongodb: | ||
image: mongo:4.2.6 | ||
ports: | ||
- 27017/tcp | ||
steps: | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: 4.2.6 | ||
mongodb-replica-set: test-rs | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
|
@@ -39,11 +40,16 @@ jobs: | |
- name: install dependencies | ||
run: yarn install | ||
- run: yarn blank-state | ||
env: | ||
DBHOST: localhost:27017 | ||
ELASTICSEARCH_URL: http://localhost:${{ job.services.elasticsearch.ports[9200] }} | ||
- run: yarn production-build | ||
env: | ||
DBHOST: localhost:${{ job.services.mongodb.ports[27017] }} | ||
ELASTICSEARCH_URL: http://localhost:${{ job.services.elasticsearch.ports[9200] }} | ||
- run: yarn update-translations-db | ||
- run: cd prod; yarn update-translations-db | ||
env: | ||
NODE_ENV: production | ||
DBHOST: localhost:${{ job.services.mongodb.ports[27017] }} | ||
- run: yarn check-translations | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters