feat: add GTM classess #36
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: | |
branches: | |
- 'main' | |
jobs: | |
lhci: | |
name: Lighthouse CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Install dependencies and build | |
run: | | |
yarn install | |
yarn build | |
yarn global add @lhci/cli@0.8.x | |
- name: Run Lighthouse CI (mobile) | |
run: | | |
lhci autorun --config=./lighthouserc-mobile.yml | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
- name: Run Lighthouse CI (desktop) | |
run: | | |
lhci autorun --config=./lighthouserc-desktop.yml | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
- name: Create artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-result | |
path: ./dist |