-
Notifications
You must be signed in to change notification settings - Fork 80
57 lines (43 loc) · 1.06 KB
/
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
48
49
50
51
52
53
54
55
56
57
name: CI
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out the Repository
uses: actions/checkout@v3
- name: Install Packages
run: sudo apt-get update && sudo apt-get -y install pkg-config libusb-1.0 libudev-dev
- name: Install PNPM
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Lint
run: pnpm lint
- name: Compile (Hardhat)
run: pnpm compile
- name: Test
run: pnpm test
- name: Test Deployment
run: pnpm test:deploy
- name: Compile (Foundry)
run: forge build