-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.07 KB
/
lighthouse.yml
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
name: Lighthouse
on:
push:
branches:
- main
jobs:
lighthouse:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Lighthouse
uses: foo-software/lighthouse-check-action@master
id: lighthouseCheck
with:
urls: "https://nikasproject.ir"
device: "all"
gitAuthor: ${{ github.author }}
gitBranch: ${{ github.ref }}
gitHubAccessToken: ${{ github.token }}
locale: "en"
prCommentEnabled: true
- name: Verify Lighthouse Check results
uses: foo-software/lighthouse-check-status-action@master
with:
lighthouseCheckResults: ${{ steps.lighthouseCheck.outputs.lighthouseCheckResults }}
minAccessibilityScore: "80"
minBestPracticesScore: "100"
minPerformanceScore: "65"
minProgressiveWebAppScore: "65"
minSeoScore: "100"