-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 636-feat-profile-picture-upload-dialog
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Deploy to Cloudflare | ||
|
||
on: [push] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
name: Deploy to Cloudflare | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build Quasar app | ||
run: npm run build | ||
|
||
- name: Deploy | ||
id: deploy | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
command: pages deploy dist/pwa --project-name=celebrityfanalyzer | ||
|
||
- name: Wait for 3 minutes | ||
run: sleep 180 # Sleep for 180 seconds (3 minutes) | ||
|
||
- name: Run Lighthouse on urls and validate with lighthouserc | ||
uses: treosh/lighthouse-ci-action@v12 | ||
with: | ||
urls: ${{ steps.deploy.outputs.deployment-url }} | ||
configPath: './.github/workflows/lighthouserc.json' | ||
runs: 3 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"ci": { | ||
"assert": { | ||
"assertions": { | ||
"categories:performance": ["warn", { "minScore": 0.4 }], | ||
"categories:accessibility": ["warn", { "minScore": 0.7 }], | ||
"categories:best-practices": ["warn", { "minScore": 0.7 }], | ||
"categories:seo": ["warn", { "minScore": 0.6 }] | ||
} | ||
} | ||
} | ||
} |