Skip to content

linting and lighthouse checks added #6

linting and lighthouse checks added

linting and lighthouse checks added #6

Workflow file for this run

name: 'Lighthouse CI'
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-lighthouse:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Set up Node.js'
uses: actions/setup-node@v4
with:
node-version: '16'
- name: 'Install dependencies'
run: npm ci
- name: 'Build Angular project'
run: npm run build -- --configuration production
- name: 'Run Lighthouse CI'
uses: treosh/lighthouse-ci-action@v12
with:
configPath: './lighthouserc.json'
uploadArtifacts: true