Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SAYaghoubnejad committed Sep 19, 2024
1 parent dcc046b commit 07900c6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/hardhat-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Hardhat Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive' # Add this line to fetch submodules
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '22.x'
- name: Create .env
run: |
cd contract
cp .env.sample .env
- name: Install dependencies
run: |
cd contract
npm ci
cd eigensdk-js # Navigate to the submodule directory
npm ci # Install dependencies for the submodule
cd .. # Return to the main project directory
- name: Run Hardhat tests
run: |
cd contract
npx hardhat test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The following section outlines how to run tests and deploy the contract.
To test the contract, run the following commands:

```bash
$ git clone https://github.com/Inspector-Butters/EigenSync.git
$ git clone --recurse-submodules https://github.com/Inspector-Butters/EigenSync.git
$ cd contract
$ npm install
$ npx hardhat test
Expand Down
3 changes: 0 additions & 3 deletions contract/.gitmodules

This file was deleted.

0 comments on commit 07900c6

Please sign in to comment.