-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 1.24 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
name: Hardhat Pipeline
on: [push, pull_request]
env:
DEBUG: '@tenderly/github-action'
## Needed available as env variables for hardhat.config.js
TENDERLY_PROJECT_NAME: ${{ vars.TENDERLY_PROJECT_NAME }}
TENDERLY_ACCOUNT_NAME: ${{ vars.TENDERLY_ACCOUNT_NAME }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Setup Virtual TestNet
uses: Tenderly/[email protected]
with:
mode: CI
access_key: ${{ secrets.TENDERLY_ACCESS_KEY }}
project_name: ${{ vars.TENDERLY_PROJECT_NAME }}
account_name: ${{ vars.TENDERLY_ACCOUNT_NAME }}
testnet_name: "Staging TestNet"
network_id: 1
chain_id: 1
state_sync: true
public_explorer: true
verification_visibility: bytecode
- name: Install dependencies
run: npm install
- name: Run Tests
run: npm run test:vnet
working-directory: examples/hardhat-ignition
- name: Deploy Contracts
run: npm run deploy:vnet
working-directory: examples/hardhat-ignition