-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from SanjeebLama/feature/lighthouse-ci-setup
Feature/lighthouse ci setup
- Loading branch information
Showing
3 changed files
with
26 additions
and
11 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 |
---|---|---|
|
@@ -15,16 +15,19 @@ jobs: | |
node-version: 16.x | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
run: yarn | ||
|
||
- name: Build App | ||
run: npm run build | ||
- name: Build App -- But do you we need to build here? | ||
working-directory: apps/docs | ||
#run: yarn workspace docs run build | ||
run: yarn run build | ||
|
||
- name: Deploy to Vercel | ||
- name: Deploy apps/docs to Vercel | ||
uses: amondnet/vercel-action@v20 | ||
with: | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel-args: --yes | ||
build-dir: apps/docs/.next | ||
|
||
- name: Wait for Deployment | ||
run: | | ||
|
@@ -36,6 +39,7 @@ jobs: | |
- name: Run Lighthouse Tests | ||
run: | | ||
cd apps/docs | ||
npm install -g @lhci/[email protected] | ||
lhci autorun | ||
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