Skip to content

Commit d39955b

Browse files
committed
[action]: take snap of homepage;
1 parent 04aa2fd commit d39955b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/snap.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Take Snap of Rendered Page
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
lighthouse:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: 'Installing deps'
15+
run: yarn
16+
17+
- name: 'Build Prodcution'
18+
run: yarn build
19+
20+
- name: 'Serve Prodcution Server'
21+
run: serve -s build &
22+
23+
- name: 'Take Snap'
24+
run: node puppeteer/snap.js
25+
26+
- name: 'Upload report'
27+
uses: actions/upload-artifact@v4
28+
if: always()
29+
with:
30+
name: snap-of-homepage
31+
path: |
32+
homepage.png

0 commit comments

Comments
 (0)