Skip to content

Commit ae0db91

Browse files
authored
Merge pull request #12165 from ethereum/hardhat-tests-in-ci
[CI] Run hardhat tests as a PR check
2 parents d8d2c49 + ab31437 commit ae0db91

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.circleci/config.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,32 @@ jobs:
846846
npm --version
847847
test/externalTests/solc-js/solc-js.sh /tmp/workspace/soljson.js $(cat /tmp/workspace/version.txt)
848848
849+
t_ems_ext_hardhat:
850+
docker:
851+
- image: circleci/node
852+
environment:
853+
TERM: xterm
854+
HARDHAT_TESTS_SOLC_PATH: /tmp/workspace/soljson.js
855+
steps:
856+
- checkout
857+
- attach_workspace:
858+
at: /tmp/workspace
859+
- run: git clone --depth 1 https://github.com/nomiclabs/hardhat.git
860+
- run:
861+
name: Install dependencies
862+
command: |
863+
cd hardhat
864+
yarn
865+
- run:
866+
name: Run hardhat-core test suite
867+
command: |
868+
HARDHAT_TESTS_SOLC_VERSION=$(scripts/get_version.sh)
869+
export HARDHAT_TESTS_SOLC_VERSION
870+
871+
# NOTE: This is expected to work without running `yarn build` first.
872+
cd hardhat/packages/hardhat-core
873+
yarn test
874+
849875
t_ems_ext:
850876
parameters:
851877
project:
@@ -1116,6 +1142,7 @@ workflows:
11161142
# Emscripten build and tests that take 15 minutes or less
11171143
- b_ems: *workflow_trigger_on_tags
11181144
- t_ems_solcjs: *workflow_emscripten
1145+
- t_ems_ext_hardhat: *workflow_emscripten
11191146

11201147
- t_ems_ext:
11211148
<<: *workflow_emscripten

0 commit comments

Comments
 (0)