-
Notifications
You must be signed in to change notification settings - Fork 9
82 lines (66 loc) · 1.85 KB
/
build.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Build
on: [push, pull_request]
jobs:
codegen-and-build-indexers:
runs-on: ubuntu-latest
defaults:
run:
working-directory: indexers
name: Run codegen and build
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Node.js 📦
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Enable Corepack 📦
run: corepack enable
- name: Install dependencies 📦
run: yarn install
- name: Generate types and project manifest 🔗
run: yarn codegen
- name: Build project 🔧
run: yarn build
ts-lint-and-build-explorer:
runs-on: ubuntu-latest
defaults:
run:
working-directory: explorer
name: Run eslint and code style check
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Node.js 📦
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Enable Corepack 📦
run: corepack enable
- name: Install dependencies 📦
run: yarn install
- name: Run linter 🔍
run: yarn lint:fix
- name: Build project 🔧
env:
NEXT_PUBLIC_GEMINI_3H_INDEXERS: ${{ secrets.NEXT_PUBLIC_GEMINI_3H_INDEXERS }}
run: yarn build
ts-lint-and-build-health-check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: health-check
name: Run eslint, check typescript
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Node.js 📦
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install dependencies 📦
run: npm ci
- name: Run linter 🔍
run: npm run lint
- name: Build project 🔧
run: npm run build