-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (41 loc) · 1.16 KB
/
pwa-audit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: PWA Audit
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lighthouseci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Install Lighthouse CI
run: npm install -g @lhci/[email protected]
- name: Run Lighthouse CI
run: lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
- name: Upload Lighthouse report
uses: actions/upload-artifact@v3
with:
name: lighthouse-report
path: .lighthouseci
- name: List directory contents
run: |
echo "Current directory:"
ls -la
echo "Lighthouse CI directory (if exists):"
ls -la .lighthouseci || echo ".lighthouseci directory not found"
- name: Upload Lighthouse report
uses: actions/upload-artifact@v3
with:
name: lighthouse-report
path: .lighthouseci
if-no-files-found: warn