Skip to content

rectified error

rectified error #16

Workflow file for this run

name: Nexus Test Cases
on:
pull_request:
types: [opened,edited]
branches: [develop,main]
jobs:
Test-Contracts:
runs-on: ubuntu-latest
environment: Testing
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: |
npm ci
- name: Setup Environment
run: |
npx hardhat compile
- name: Run Test
run: |
npx hardhat test test/registration.ts
- name: Copy ABI
run: |
mkdir -p contract_abi
cp artifacts/contracts/Nexus.sol/Nexus.json abis/Nexus.json
cp artifacts/contracts/NexusBridge.sol/NexusBridge.json abis/NexusBridge.json
- name: Commit
uses: EndBug/add-and-commit@v9
with:
default_author: RohitAudit
message: 'CI: Generated ABIs'
add: 'contract_abi/*'