-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (37 loc) · 992 Bytes
/
CI.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
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.19.1
cache: 'pnpm'
- uses: actions/cache@v3
id: cache
with:
path: |
node_modules
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm run lint
- name: Check formatting
run: pnpm run format:check
- name: Build
env:
GRAPH_URL_ARBITRUM: ${{ secrets.GRAPH_URL_ARBITRUM }}
GRAPH_URL_ARBITRUM_NEW: ${{ secrets.GRAPH_URL_ARBITRUM_NEW }}
run: pnpm run build