update analytics.js file to be compatible with GA4 #2547
Workflow file for this run
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 accessibility checks | |
on: [pull_request] | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
jobs: | |
lhci: | |
name: Lighthouse CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Read .nvmrc file | |
id: read-nvmrc-file | |
run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ steps.read-nvmrc-file.outputs.nvmrc }}" | |
- name: Install dependencies | |
run: yarn install | |
- name: Build pages | |
run: yarn build | |
- name: Run Lighthouse CI | |
run: ./lighthouse/lighthouse.sh | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} |