Skip to content

fix:#521 - functionality to update impressions on page leave, or tab … #33

fix:#521 - functionality to update impressions on page leave, or tab …

fix:#521 - functionality to update impressions on page leave, or tab … #33

Workflow file for this run

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