Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 6 additions & 58 deletions .github/workflows/run-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -498,35 +498,9 @@ jobs:
- deploy-staging-nest
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install pnpm
uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
with:
run_install: false
version: 11.5.0

- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
cache-dependency-path: frontend/pnpm-lock.yaml
cache: pnpm
node-version: 24

- name: Install frontend dependencies
run: pnpm install --frozen-lockfile
working-directory: frontend

- name: Run lighthouse-ci
env:
LHCI_BASE_URL: https://nest.owasp.dev
run: |
pnpm run lighthouse-ci
working-directory: frontend
timeout-minutes: 5
uses: ./.github/workflows/run-lighthouse-ci.yaml
with:
base_url: https://nest.owasp.dev

run-staging-zap-baseline-scan:
name: Run staging ZAP baseline scan
Expand Down Expand Up @@ -963,35 +937,9 @@ jobs:
- deploy-production-nest
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install pnpm
uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
with:
run_install: false
version: 11.5.0

- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
cache-dependency-path: frontend/pnpm-lock.yaml
cache: pnpm
node-version: 24

- name: Install frontend dependencies
run: pnpm install --frozen-lockfile
working-directory: frontend

- name: Run lighthouse-ci
env:
LHCI_BASE_URL: https://nest.owasp.org
run: |
pnpm run lighthouse-ci
working-directory: frontend
timeout-minutes: 5
uses: ./.github/workflows/run-lighthouse-ci.yaml
with:
base_url: https://nest.owasp.org

run-production-zap-baseline-scan:
name: Run production ZAP baseline scan
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/run-lighthouse-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run Lighthouse CI

on:
workflow_call:
inputs:
base_url:
description: Base URL for Lighthouse CI
required: true
type: string

env:
FORCE_COLOR: 1

permissions: {}

jobs:
run-lighthouse-ci:
name: Run Lighthouse CI
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Comment thread
ahmedxgouda marked this conversation as resolved.
Comment thread
ahmedxgouda marked this conversation as resolved.
with:
persist-credentials: false

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


- name: Setup frontend environment
uses: ./.github/actions/setup-frontend-environment

- name: Run lighthouse-ci
env:
LHCI_BASE_URL: ${{ inputs.base_url }}
run: pnpm run lighthouse-ci
working-directory: frontend
timeout-minutes: 5
Comment thread
ahmedxgouda marked this conversation as resolved.
Loading