forked from rainbow-me/rainbowkit
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1001 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
name: CI
on: [pull_request, push]
env:
pnpm: 8
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: YOUR_PROJECT_ID
WALLETCONNECT_PROJECT_ID: YOUR_PROJECT_ID
ALCHEMY_ID: YOUR_ALCHEMY_ID
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [lts/*]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache .pnpm-store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node${{ matrix.node }}-${env.pnpm}-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install pnpm
run: npm i -g pnpm@${{env.pnpm}}
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm build
- name: Lint and format
run: pnpm lint
- name: Run tests
run: pnpm test && pnpm test:cli