-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (47 loc) · 1.19 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
name: Build
on: [push, pull_request]
jobs:
ts-lint-and-build-squid:
runs-on: ubuntu-latest
defaults:
run:
working-directory: indexers/squid-blockexplorer
name: Run eslint, check typescript and run tests
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- run: npm ci --legacy-peer-deps
- run: npm test
- run: npm run lint
- run: npm run 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: Run linter 🔍
run: |
yarn install
yarn lint:fix
- name: Build project 🔧
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:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- run: npm ci
- run: npm run lint
- run: npm run build