Skip to content

Commit

Permalink
Added a new build:apps workflow to fix flaky CI runs becaue apps are …
Browse files Browse the repository at this point in the history
…making async calls during the build. (#554)
  • Loading branch information
piotrwitek authored Nov 4, 2024
1 parent 0210b9a commit 212bd50
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/earn-protocol-landing-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"scripts": {
"dev": "dotenv -e ../../.env -e ../../.env.local -- next dev -p 3003 --turbo",
"build:async": "dotenv -e ../../.env -e ../../.env.local -- next build",
"build:apps": "dotenv -e ../../.env -e ../../.env.local -- next build",
"start": "next start -p 3003",
"lint": "eslint ."
},
Expand Down
2 changes: 1 addition & 1 deletion apps/earn-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"scripts": {
"dev": "dotenv -e ../../.env -e ../../.env.local -- next dev -p 3002 --turbo",
"build:async": "dotenv -e ../../.env -e ../../.env.local -- next build",
"build:apps": "dotenv -e ../../.env -e ../../.env.local -- next build",
"start": "dotenv -e ../../.env -e ../../.env.local -- next start -p 3002",
"lint": "eslint .",
"lint-timing": "TIMING=1 eslint ."
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"prebuild": "turbo run prebuild --cache-dir=.turbo",
"build": "turbo run build --cache-dir=.turbo",
"build-rays-frontend": "turbo run build --cache-dir=.turbo --filter=@summerfi/rays-dashboard",
"build-earn-frontend": "turbo run build --cache-dir=.turbo --filter=@summerfi/earn-protocol",
"build-earn-frontend-landing": "turbo run build --cache-dir=.turbo --filter=@summerfi/earn-protocol-landing-page",
"build-earn-frontend": "turbo run build:apps --cache-dir=.turbo --filter=@summerfi/earn-protocol",
"build-earn-frontend-landing": "turbo run build:apps --cache-dir=.turbo --filter=@summerfi/earn-protocol-landing-page",
"prebuild:sdk": "turbo run prebuild --cache-dir=.turbo --filter=./packages/* --filter=./sdk/*",
"build:sdk": "turbo run build --cache-dir=.turbo --filter=./packages/* --filter=./sdk/*",
"lint": "turbo run lint --cache-dir=.turbo",
Expand Down
11 changes: 11 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@
".sst/**"
]
},
"build:apps": {
"dependsOn": ["prebuild", "^build", "^build:apps"],
"outputs": [
".next/**",
".next/server/pages/**",
"!.next/cache/**",
"dist/**",
"artifacts/**",
".sst/**"
]
},
"test": {
"dependsOn": ["prebuild", "build", "^test"]
},
Expand Down

0 comments on commit 212bd50

Please sign in to comment.