Skip to content

Commit

Permalink
chore: add config in lighthouserc
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokaito committed Nov 15, 2023
1 parent 80c9355 commit 4da437f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/lhci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,20 @@ concurrency:
cancel-in-progress: true

env:
# -- SHOPIFY CONFIG -- #
SHOPIFY_STOREFRONT_ACCESS_TOKEN: ${{ secrets.SHOPIFY_STOREFRONT_ACCESS_TOKEN }}
SHOPIFY_STORE_DOMAIN: ${{ secrets.SHOPIFY_STORE_DOMAIN }}
# -- SHOPIFY CONFIG -- #

# -- LHCI CONFIG -- #
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
# -- LHCI CONFIG -- #

# -- TURBO CACHE -- #
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
# -- TURBO CACHE -- #

jobs:
lhci:
Expand Down
8 changes: 7 additions & 1 deletion apps/commerce/lighthouserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ const { lighthouse: lhConfig } = require('./store.config');
module.exports = {
urls: Object.values(lhConfig.pages),
server: lhConfig.server,
startServerCommand: lhConfig.startServerCommand
startServerCommand: lhConfig.startServerCommand,
collect: {
url: Object.values(lhConfig.pages).map((url) => `${lhConfig.server}${url}`)
},
upload: {
target: 'temporary-public-storage'
}
};

0 comments on commit 4da437f

Please sign in to comment.