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
22 changes: 9 additions & 13 deletions .github/scripts/ci/lighthouse/build-comment-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@ const manifestRaw = process.env.LIGHTHOUSE_MANIFEST?.trim() || '[]';
const linksRaw = process.env.LIGHTHOUSE_LINKS?.trim() || '{}';
const commentBodyFile = process.env.COMMENT_BODY_FILE || 'lighthouse-pr-comment.md';

let manifest = [];
let links = {};

try {
manifest = JSON.parse(manifestRaw);
} catch {
manifest = [];
}
const parseJsonOrDefault = (value, fallback) => {
try {
return JSON.parse(value);
} catch {
return fallback;
}
};

try {
links = JSON.parse(linksRaw);
} catch {
links = {};
}
const manifest = parseJsonOrDefault(manifestRaw, []);
const links = parseJsonOrDefault(linksRaw, {});

const toPercent = (score) =>
typeof score === 'number' ? `${Math.round(score * 100)}%` : 'n/a';
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
head_sha: ${{ steps.range.outputs.head_sha }}
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0

Expand All @@ -55,7 +55,7 @@ jobs:
runs-on: *runner-image
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Bootstrap Node
uses: ./.github/actions/node-bootstrap
Expand All @@ -68,7 +68,7 @@ jobs:
runs-on: *runner-image
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Bootstrap Node
uses: ./.github/actions/node-bootstrap
Expand All @@ -81,7 +81,7 @@ jobs:
runs-on: *runner-image
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Bootstrap Node
uses: ./.github/actions/node-bootstrap
Expand All @@ -98,7 +98,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Bootstrap Node
uses: ./.github/actions/node-bootstrap
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
runs-on: *runner-image
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Bootstrap Node
uses: ./.github/actions/node-bootstrap
Expand All @@ -178,7 +178,7 @@ jobs:
runs-on: *runner-image
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Bootstrap Node
uses: ./.github/actions/node-bootstrap
Expand All @@ -195,7 +195,7 @@ jobs:
runs-on: *runner-image
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0

Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Bootstrap Node
uses: ./.github/actions/node-bootstrap
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:
runs-on: *runner-image
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Bootstrap Node
uses: ./.github/actions/node-bootstrap
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# --- Build Stage ---
FROM node:26.3.0-alpine3.23 AS builder
FROM node:26.3.1-alpine3.23 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run generate

# --- Production Stage ---
FROM nginx:1.31.1-alpine3.23-slim AS production
FROM nginx:1.31.2-alpine3.23-slim AS production

# Remove default nginx index page
RUN rm -f /usr/share/nginx/html/index.html
Expand Down
Loading
Loading