Skip to content

Master

Master #31

Workflow file for this run

name: Hardhat Pipeline

Check failure on line 1 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

(Line: 3, Col: 1): 'name' is already defined, (Line: 4, Col: 1): 'on' is already defined
on: [push, pull_request]
name: Hardhat Pipeline
on: [push, pull_request]
permissions: read-all
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/vnet-github-action@v1.0.6
with:
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 ci
- name: Run Tests
run: npm run test:vnet
working-directory: examples/Hardhat-ignition