We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04aa2fd commit d39955bCopy full SHA for d39955b
.github/workflows/snap.yml
@@ -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