-
Notifications
You must be signed in to change notification settings - Fork 667
39 lines (34 loc) · 1012 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
name: CI
on: [pull_request, push]
env:
pnpm: 9.12.0
RAINBOW_PROVIDER_API_KEY: ${{ secrets.RAINBOW_PROVIDER_API_KEY }}
WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }}
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [lts/*]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Cache .pnpm-store
uses: actions/cache@v4
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