Skip to content

Commit 6b95a81

Browse files
Dargon789github-advanced-security[bot]sourcery-ai[bot]
authored
Create ci.yaml (NomicFoundation#2106)
* Create ci.yaml Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com> * Potential fix for pull request finding 'CodeQL / Workflow does not contain permissions' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com> * Update .github/workflows/ci.yaml Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com> * Update .github/workflows/ci.yaml Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com> --------- Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 786a03d commit 6b95a81

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Hardhat Pipeline
2+
on: [push, pull_request]
3+
name: Hardhat Pipeline
4+
on: [push, pull_request]
5+
permissions: read-all
6+
env:
7+
DEBUG: '@tenderly/github-action'
8+
## Needed available as env variables for Hardhat.config.js
9+
TENDERLY_PROJECT_NAME: ${{ vars.TENDERLY_PROJECT_NAME }}
10+
TENDERLY_ACCOUNT_NAME: ${{ vars.TENDERLY_ACCOUNT_NAME }}
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20'
21+
cache: 'npm'
22+
23+
- name: Setup Virtual TestNet
24+
uses: Tenderly/vnet-github-action@v1.0.6
25+
with:
26+
access_key: ${{ secrets.TENDERLY_ACCESS_KEY }}
27+
project_name: ${{ vars.TENDERLY_PROJECT_NAME }}
28+
account_name: ${{ vars.TENDERLY_ACCOUNT_NAME }}
29+
testnet_name: "Staging TestNet"
30+
network_id: 1
31+
chain_id: 1
32+
state_sync: true
33+
public_explorer: true
34+
verification_visibility: bytecode
35+
36+
- name: Install dependencies
37+
run: npm ci
38+
39+
- name: Run Tests
40+
run: npm run test:vnet
41+
working-directory: examples/Hardhat-ignition

0 commit comments

Comments
 (0)