-
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.
- Loading branch information
Showing
2 changed files
with
29 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,19 +1,47 @@ | ||
name: Vercel Preview Deployment | ||
name: Vercel Preview Deployment and Lighthouse Check | ||
|
||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
|
||
on: | ||
push | ||
|
||
jobs: | ||
Deploy-Preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
|
||
- name: Pull Vercel Environment Information | ||
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Build Project Artifacts | ||
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Deploy Project Artifacts to Vercel | ||
id: vercel_deploy | ||
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Lighthouse Check | ||
id: lighthouseCheck | ||
uses: foo-software/lighthouse-check-action@master | ||
with: | ||
urls: ${{ steps.vercel_deploy.outputs.preview-url }} | ||
prCommentEnabled: true | ||
gitAuthor: ${{ github.actor }} | ||
gitBranch: ${{ github.ref }} | ||
sha: ${{ github.sha }} | ||
|
||
- name: Verify Lighthouse Check results | ||
uses: foo-software/lighthouse-check-status-action@master | ||
with: | ||
lighthouseCheckResults: ${{ steps.lighthouseCheck.outputs.lighthouseCheckResults }} | ||
minAccessibilityScore: "70" | ||
minBestPracticesScore: "50" | ||
minPerformanceScore: "50" | ||
minProgressiveWebAppScore: "50" | ||
minSeoScore: "50" |
c2c014f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
potits-front – ./
potits-chats.vercel.app
potits-front-git-main-marion-sgrs-projects.vercel.app
potits-front-marion-sgrs-projects.vercel.app
potits-chats.com
www.potits-chats.com