Skip to content

feat: Lighthouse audit #4

feat: Lighthouse audit

feat: Lighthouse audit #4

Workflow file for this run

name: Build
on:
pull_request:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# - name: Configure Pages
# id: pages
# uses: actions/configure-pages@v3
- name: Setup
uses: ./.github/actions/setup
- name: Build
run: pnpm build
- name: Run linters
run: pnpm lint
# - name: Run unit tests
# run: pnpm test:unit
# - name: Run e2e tests
# run: pnpm test:e2e
# - name: Move output of Website SSR
# run: |
# mkdir -p out
# mv apps/website-ssr/out out/website-ssr
# mv out apps/website-ssr/
# - name: Run Lighthouse tests on Website SSR
# run: |
# cd apps/website-ssr
# lhci autorun --config=lighthouse.config.js
# env:
# LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
# - name: Move output of website
# run: |
# mkdir -p out
# mv apps/website/out out${{ steps.pages.outputs.base_path }}
# mv out apps/website/
# - name: Run Lighthouse tests on website
# run: |
# cd apps/website
# lhci autorun --config=lighthouse.config.js
# env:
# LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
# - name: Upload website
# uses: actions/upload-artifact@v3
# with:
# name: website
# path: apps/website/out${{ steps.pages.outputs.base_path }}
# retention-days: 1
# - name: Upload e2e test reports
# uses: actions/upload-artifact@v3
# if: ${{ always() }}
# with:
# name: e2e-reports
# path: |
# apps/website-ssr/e2e-report/
# apps/website-ssr/e2e-results/
# apps/website/e2e-report/
# apps/website/e2e-results/
# retention-days: 7