-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.26 KB
/
ci.yml
File metadata and controls
57 lines (46 loc) · 1.26 KB
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
name: CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false || github.event.pull_request == null
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Setup Node.js (act)
if: env.ACT == 'true'
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Setup Node.js
if: env.ACT != 'true'
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies (act)
if: env.ACT == 'true'
run: pnpm install --no-frozen-lockfile
- name: Install dependencies
if: env.ACT != 'true'
run: pnpm install --frozen-lockfile
- name: Compile contracts
run: pnpm hardhat compile
env:
SKIP_HARDHAT_TASKS: "true"
- name: Build
run: pnpm run build
- name: Test
run: pnpm test
env:
SKIP_HARDHAT_TASKS: "true"