feat(ci): parallelize lighthouse and add artifact sharing

This commit is contained in:
Tuan-Dat Tran
2026-02-23 20:06:53 +01:00
parent af6fe5171f
commit 91e86c9785

View File

@@ -64,9 +64,9 @@ jobs:
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.node-version }}
name: dist
path: dist/
retention-days: 7
retention-days: 1
backend:
runs-on: ubuntu-latest
@@ -96,6 +96,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Setup Node.js
uses: actions/setup-node@v4
with:
@@ -116,6 +122,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Setup Node.js
uses: actions/setup-node@v4
with:
@@ -147,6 +159,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Setup Node.js
uses: actions/setup-node@v4
with:
@@ -169,7 +187,6 @@ jobs:
lighthouse:
runs-on: ubuntu-latest
needs: [frontend]
steps:
- name: Checkout