Skip to content

Commit

Permalink
Merge branch 'develop' into 636-feat-profile-picture-upload-dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
marclupanc committed Nov 10, 2024
2 parents d76fe90 + 2769569 commit a1be7c4
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deployment.yml
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
12 changes: 12 additions & 0 deletions .github/workflows/lighthouserc.json
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 }]
}
}
}
}

0 comments on commit a1be7c4

Please sign in to comment.