-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.2 KB
/
Copy pathmain.yml
File metadata and controls
51 lines (39 loc) · 1.2 KB
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
43
44
45
46
47
48
49
50
51
name: Test Website
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
# - name: Install ESLint
# run: npm install -g eslint
# - name: Run ESLint
# run: npm run lint
- name: Install Lighthouse
run: npm install -g lighthouse
- name: Update Apt Cache
run: sudo apt update
- name: Download Google Chrome
run: wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- name: Install Google Chrome
run: sudo apt install -y ./google-chrome-stable_current_amd64.deb
- name: Run Lighthouse Audit
run: lighthouse --output=html --output-path=./lighthouse-report.html --save-assets --chrome-flags="--headless --no-sandbox" https://www.derekmelder.com/
- name: Save Report
uses: actions/upload-artifact@v4
with:
name: lighthouse-report
path: lighthouse-report.html