Skip to content

Commit

Permalink
setup launch-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed Sep 10, 2024
1 parent b92e31d commit 554ca25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ jobs:
yarn global add node-gyp
yarn --frozen-lockfile
- name: turbo run dev:ci
- name: turbo run launch-dev:ci
working-directory: ./apps/app
run: |
cp config/ci/.env.local.for-ci .env.development.local
turbo run dev:ci --env-mode=loose
turbo run launch-dev:ci --env-mode=loose
env:
MONGO_URI: mongodb://localhost:${{ job.services.mongodb.ports['27017'] }}/growi_dev

Expand Down
2 changes: 1 addition & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dev:migrate:up": "yarn dev:migrate-mongo up -f config/migrate-mongo-config.js",
"dev:migrate:down": "yarn dev:migrate-mongo down -f config/migrate-mongo-config.js",
"//// for CI": "",
"dev:ci": "yarn cross-env NODE_ENV=development yarn ts-node src/server/app.ts --ci",
"launch-dev:ci": "yarn cross-env NODE_ENV=development yarn dev:migrate && yarn ts-node src/server/app.ts --ci",
"lint:typecheck": "npx -y tspc",
"lint:eslint": "yarn eslint --quiet \"**/*.{js,jsx,ts,tsx}\"",
"lint:styles": "stylelint \"src/**/*.scss\"",
Expand Down
5 changes: 3 additions & 2 deletions apps/app/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
"cache": false,
"persistent": true
},
"dev:ci": {
"dependsOn": ["^dev", "dev:migrate", "dev:styles-prebuilt"],

"launch-dev:ci": {
"dependsOn": ["^dev", "dev:styles-prebuilt"],
"cache": false
},

Expand Down

0 comments on commit 554ca25

Please sign in to comment.