-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (47 loc) · 1.38 KB
/
contracts.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]
jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: List directory contents
run: ls -al
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install contracts dependencies
working-directory: contracts
run: npm install --legacy-peer-deps
- name: Install TypeScript for solidity contracts
working-directory: contracts
run: npm install --save-dev ts-node typescript
- name: Run Hardhat Compile
working-directory: contracts
run: npx hardhat compile
- name: Run Hardhat Test
working-directory: contracts
run: npx hardhat test
- name: Install root dependencies
run: npm install --legacy-peer-deps
- name: Install Turborepo globally
run: npm install turbo --global
- name: Run Turbo in repository
run: npm install turbo --save-dev
- name: installing vite dependencies
working-directory: app
run: npm install
- name: Run Vite
working-directory: app
run: npm run dev