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
let stickyElementStyle = null; | |
let stickyElementTop = 0; | |
function determineStickyState(element) { | |
if (!stickyElementStyle) { | |
stickyElementStyle = window.getComputedStyle(element); | |
stickyElementTop = parseInt(stickyElementStyle.top, 10); | |
} |
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
name: Lighthouse | |
on: push | |
jobs: | |
lighthouse: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run Lighthouse on urls and upload data to private lhci server | |
uses: treosh/lighthouse-ci-action@v9 | |
with: |
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
name: Lighthouse CI | |
on: push | |
jobs: | |
lighthouse: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Audit URLs using Lighthouse | |
uses: treosh/lighthouse-ci-action@v9 | |
with: |
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
lhci: | |
image: cypress/browsers:node16.5.0-chrome94-ff93 | |
script: | |
- npm ci | |
- npm run build | |
- npm install -g @lhci/cli@0.8.x | |
- lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir="./projects/hola-magazine/.next" --collect.settings.chromeFlags="--no-sandbox" || echo "LHCI failed!" |
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
variables: | |
LHCI_TOKEN: "$TOKEN" | |
SERVER_BASE_URL_VAR: "$SERVER_BASE_URL" | |
AUTH_USERNAME: $BASIC_AUTH_USERNAME | |
AUTH_PASS: $BASIC_AUTH_PASS | |
lhci: | |
image: cypress/browsers:node16.5.0-chrome94-ff93 | |
script: | |
- npm ci |