Skip to content

Commit

Permalink
added github action for running the hardhat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed Nov 30, 2023
1 parent 29da6e1 commit 1e008be
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/hardhat-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Hardhat Tests

on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20 # You can specify your Node.js version here

- name: Install Dependencies
run: npm install

- name: Run Hardhat Tests
run: npx hardhat test
6 changes: 1 addition & 5 deletions test/Lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,8 @@ describe("Fund Manager", function () {
]);

await waitForRequestHandling(publicClient, fundManager.address, hash);
// const receipt = await publicClient.getTransactionReceipt({ hash });
// console.log(fundManager.address);

// console.log(keccak256(stringToBytes("RequestSent(bytes32)")));

// console.log(receipt.logs);
console.log(await fundManager.read.result());
});

// We define a fixture to reuse the same setup in every test.
Expand Down
7 changes: 1 addition & 6 deletions test/chainlink-functions-simulators.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { viem } from "hardhat";
import { hexToBytes, encodePacked } from "viem";
import cbor from "cbor";
import {
PublicClient,
keccak256,
stringToBytes,
decodeAbiParameters,
} from "viem";
import { PublicClient, keccak256, stringToBytes } from "viem";

type DecodedData = Record<string, any>;

Expand Down

0 comments on commit 1e008be

Please sign in to comment.