forked from Nova-reward/Nova-Rewards
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.03 KB
/
Copy pathlighthouse.yml
File metadata and controls
41 lines (34 loc) · 1.03 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
name: Lighthouse CI
on:
pull_request:
branches: [main, develop]
paths:
- 'novaRewards/frontend/**'
jobs:
lighthouse:
name: Lighthouse Audit
runs-on: ubuntu-latest
defaults:
run:
working-directory: novaRewards/frontend
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 20
cache: npm
cache-dependency-path: novaRewards/package-lock.json
- name: Install dependencies
run: npm install
working-directory: novaRewards
- name: Build
run: npm run build
env:
NEXT_PUBLIC_API_URL: http://localhost:3001
NEXT_PUBLIC_HORIZON_URL: https://horizon-testnet.stellar.org
NEXT_PUBLIC_STELLAR_NETWORK: testnet
NEXT_PUBLIC_ISSUER_PUBLIC: GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- name: Run Lighthouse CI
run: npx @lhci/cli@0.14.x autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}