-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.23 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
41
42
43
44
45
46
47
---
# DO NOT EDIT: this file is automatically synced from the template repository
# in https://github.com/Liber-UFPE/project-starter.
name: Lighthouse CI
# yamllint disable rule:truthy
on:
push:
branches: [ "main" ]
pull_request:
types: [ "opened", "synchronize", "reopened" ]
# yamllint enable rule:truthy
env:
GRADLE_OPTS: >
-Dorg.gradle.console=plain
-Dorg.gradle.caching=true
-Dsonar.gradle.skipCompile=true
-Dorg.gradle.jvmargs="-Xmx2g -XX:MaxMetaspaceSize=512m"'
jobs:
lighthouse-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: "lts/*" # latest lts
check-latest: true
cache: "yarn"
- uses: ./.github/gradle-action
- run: ./gradlew classes
- run: yarn install
- name: Run Lighthouse CI
run: |
npx lhci collect
npx lhci assert
- name: Upload Lighthouse CI results
uses: actions/upload-artifact@v4
if: always()
with:
name: lighthouse-ci-results-${{ github.run_id }}-${{ github.sha }}
path: .lighthouseci/
retention-days: 30