Skip to content

Commit

Permalink
Automate hardhat-relay test (#359)
Browse files Browse the repository at this point in the history
* Add hardhat workflow

Signed-off-by: nikolay <[email protected]>

* Edit hardhat workflow

Signed-off-by: nikolay <[email protected]>

* Edit hardhat workflow

Signed-off-by: nikolay <[email protected]>

* Add tunnel session

Signed-off-by: nikolay <[email protected]>

* Add tunnel session

Signed-off-by: nikolay <[email protected]>

* Add tunnel session

Signed-off-by: nikolay <[email protected]>

* Add tunnel session

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Edit workflow

Signed-off-by: nikolay <[email protected]>

* Resolve comments

Signed-off-by: nikolay <[email protected]>

* Pull main

Signed-off-by: nikolay <[email protected]>
  • Loading branch information
natanasow committed Jul 21, 2022
1 parent eebf1d6 commit 1caac90
Show file tree
Hide file tree
Showing 7 changed files with 12,859 additions and 11,720 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/hardhat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Hardhat Compatibility

on:
pull_request:
branches: [ main, release/** ]
push:
branches: [ main, release/** ]
tags: [ v* ]

jobs:
setup-local-hedera:
name: Hardhat Compatibility
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16

- name: Checkout repo
uses: actions/checkout@v2

- name: Install packages
run: npm ci

- name: Create .env file
run: |
cp ./tools/hardhat-example/.env.example ./tools/hardhat-example/.env
cp ./packages/server/tests/localAcceptance.env .env
- name: Lerna Bootstrap
run: npm run setup

- name: Install pnpm
run: npm install -g pnpm

- name: Build Typescript
run: npx lerna run build

- name: Run RPC Server
run: npm run integration:prerequisite &

- name: Install hardhat dependencies
run: cd ./tools/hardhat-example/ && npm ci

- name: Run the hardhat tests
uses: nick-fields/retry@v2
with:
max_attempts: 10
timeout_minutes: 10
retry_wait_seconds: 45
command: cd ./tools/hardhat-example/ && npx hardhat test
Loading

0 comments on commit 1caac90

Please sign in to comment.