Skip to content

Commit

Permalink
Merge pull request #5246 from NomicFoundation/v-next-merged
Browse files Browse the repository at this point in the history
Merge `main` into `v-next`
  • Loading branch information
alcuadrado committed May 17, 2024
2 parents a4f694d + b74d3a7 commit 49eca6e
Show file tree
Hide file tree
Showing 262 changed files with 3,396 additions and 378,175 deletions.
5 changes: 0 additions & 5 deletions .changeset/perfect-insects-hide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-spoons-study.md

This file was deleted.

1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"version": "20"
}
},
"postCreateCommand": "scripts/setup.sh",
"containerEnv": {
"ALCHEMY_URL": "${localEnv:ALCHEMY_URL}",
"INFURA_URL": "${localEnv:INFURA_URL}"
Expand Down
18 changes: 0 additions & 18 deletions .github/dependabot.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/LATEST_DEPENDENCY_VERSIONS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
system: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.system }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ jobs:
with:
project-url: https://github.com/orgs/NomicFoundation/projects/4
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: area:edr
label-operator: NOT
4 changes: 2 additions & 2 deletions .github/workflows/check-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
name: Check docs site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/comment-on-linter-error.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
# be run on an existing project.
IS_WINDOWS: ${{ matrix.os == 'windows-latest' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Run fixture-projects script
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/hardhat-chai-matchers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
name: Test hardhat-chai-matchers on Windows with Node 18
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand All @@ -49,14 +49,12 @@ jobs:
test_on_macos:
name: Test hardhat-chai-matchers on MacOS with Node 18
runs-on: macos-latest
# disable until actions/virtual-environments#4896 is fixed
if: ${{ false }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand All @@ -76,11 +74,11 @@ jobs:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
Expand Down
85 changes: 77 additions & 8 deletions .github/workflows/hardhat-core-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: hardhat-core CI

# Note: this workflow uses `macos-13` to use x86

on:
push:
branches:
Expand Down Expand Up @@ -35,30 +37,70 @@ jobs:
fail-fast: false
matrix:
node: [18.15]
# disable until actions/virtual-environments#4896 is fixed
# os: ["macos-latest", "ubuntu-latest", "windows-latest"]
os: ["ubuntu-latest", "windows-latest"]
os: ["macos-13", "ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm

- name: Install package
run: pnpm install --frozen-lockfile --prefer-offline

- name: Cache stack trace artifacts
uses: actions/cache@v4
with:
path: |
packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/artifacts
key: hardhat-network-stack-traces-tests-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/**/*.sol') }}-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/**/test.json') }}-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/stack-traces/**/*.ts') }}-v4

- name: Build
run: pnpm build

- name: Run tests
env:
INFURA_URL: ${{ secrets.INFURA_URL }}
ALCHEMY_URL: ${{ secrets.ALCHEMY_URL }}
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true
FORCE_COLOR: 3
NODE_OPTIONS: --max-old-space-size=4096
run: pnpm test:except-provider

test-provider:
name: Test provider (${{ matrix.os }}, Node ${{ matrix.node }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [18.15]
os: ["macos-13", "ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm

- name: Install package
run: pnpm install --frozen-lockfile --prefer-offline

- name: Cache network requests
- name: Cache EDR RPC cache
uses: actions/cache@v2
with:
path: |
packages/hardhat-core/test/internal/hardhat-network/provider/.hardhat_node_test_cache
key: hardhat-network-forking-tests-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/provider/node.ts') }}
packages/hardhat-core/test/internal/hardhat-network/edr-cache
key: hardhat-network-edr-cache-v2

- name: Build
run: pnpm build
Expand All @@ -69,4 +111,31 @@ jobs:
ALCHEMY_URL: ${{ secrets.ALCHEMY_URL }}
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true
FORCE_COLOR: 3
run: pnpm test
run: pnpm test:provider

test_types_node:
name: Test different versions of @types/node
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install
run: pnpm install --frozen-lockfile --prefer-offline
- name: Install @types/node
run: pnpm add --save-dev @types/node@${{ matrix.node }}
- name: Build
run: pnpm build
- name: Run tests
env:
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true
FORCE_COLOR: 3
run: pnpm test:except-tracing
14 changes: 6 additions & 8 deletions .github/workflows/hardhat-ethers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
name: Test hardhat-ethers on Windows with Node 18
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand All @@ -49,14 +49,12 @@ jobs:
test_on_macos:
name: Test hardhat-ethers on MacOS with Node 18
runs-on: macos-latest
# disable until actions/virtual-environments#4896 is fixed
if: ${{ false }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand All @@ -74,11 +72,11 @@ jobs:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/hardhat-foundry-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
name: Test hardhat-foundry on Windows with Node 18
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand All @@ -49,14 +49,12 @@ jobs:
test_on_macos:
name: Test hardhat-foundry on MacOS with Node 18
runs-on: macos-latest
# disable until actions/virtual-environments#4896 is fixed
if: ${{ false }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand All @@ -76,11 +74,11 @@ jobs:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
Expand Down

0 comments on commit 49eca6e

Please sign in to comment.