-
Notifications
You must be signed in to change notification settings - Fork 19
43 lines (35 loc) · 1.05 KB
/
build-lint.yaml
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
# This workflow will do a clean install of bun dependencies and lint the code
# It will also compile the contracts under `smart-contracts-hardhat/` folder to make sure code examples are correct.
name: Build + Lint
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🔄 Checkout
uses: actions/checkout@v4
- name: 🛠️ Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
# Everything for the root scripts
- name: 📦 Install dependencies
run: bun install
- name: 🎨 Lint
run: bun run lint
# Everything Hardhat related
- name: 📦 Install Hardhat dependencies
working-directory: ./smart-contracts-hardhat
run: bun install
- name: 🎨 Lint Hardhat folder
working-directory: ./smart-contracts-hardhat
run: bun run lint
- name: 👷 Build contracts
working-directory: ./smart-contracts-hardhat
run: bun run build