Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into refactor/port-stack-t…
Browse files Browse the repository at this point in the history
…races-bump-hardhat
  • Loading branch information
Xanewok committed Aug 23, 2024
2 parents bb0ab95 + ecb3665 commit 3644b2b
Show file tree
Hide file tree
Showing 81 changed files with 670 additions and 1,838 deletions.
5 changes: 0 additions & 5 deletions .changeset/fuzzy-eyes-collect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fuzzy-mangos-behave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/great-crabs-hug.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/grumpy-dragons-shop.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/loud-cooks-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Fixed `debug` logs in Hardhat Network initialization process.
5 changes: 0 additions & 5 deletions .changeset/modern-points-cover.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/violet-apes-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Removed the experimentalAddHardhatNetworkMessageTraceHook API
43 changes: 43 additions & 0 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Setup env
description: Sets up node and pnpm

inputs:
pnpm-version:
description: Version of pnpm to install
required: false
default: "9"
node-version:
description: Version of node to install
required: false
default: "18"
cache-save:
description: Whether to save the pnpm cache
required: false
default: "false"
outputs:
cache-hit:
description: Whether the cache was restored
value: ${{ steps.setup-node.outputs.cache-hit || steps.cache-restore.outputs.cache-hit }}

runs:
using: composite
steps:
- uses: pnpm/action-setup@v4
with:
version: ${{ inputs.pnpm-version }}
- uses: actions/setup-node@v4
id: setup-node
with:
node-version: ${{ inputs.node-version }}
cache: ${{ inputs.cache-save == 'true' && 'pnpm' || '' }}
cache-dependency-path: "**/pnpm-lock.yaml"
- id: pnpm
if: inputs.cache-save == 'false'
run: pnpm store path --silent | xargs -I {} -0 echo "path={}" | tee -a $GITHUB_OUTPUT
shell: bash
- uses: actions/cache/restore@v4
id: cache-restore
if: inputs.cache-save == 'false'
with:
path: ${{ steps.pnpm.outputs.path }}
key: node-cache-${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
10 changes: 2 additions & 8 deletions .github/workflows/LATEST_DEPENDENCY_VERSIONS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ jobs:
runs-on: ${{ matrix.system }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- uses: ./.github/actions/setup-env
- name: Delete pnpm-lock.yaml
run: "rm pnpm-lock.yaml"
- name: Install
Expand All @@ -34,7 +28,7 @@ jobs:
run: pnpm test || (echo "===== Retry =====" && pnpm test)
- name: Notify failures
if: failure()
uses: slackapi/slack-github-action@v1.18.0
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
with:
payload: |
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
add-to-project:
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.0
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
with:
project-url: https://github.com/orgs/NomicFoundation/projects/4
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/add-label-to-new-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
script: |
const issue = await github.rest.issues.get({
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autoassign-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
permissions:
issues: write
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
script: |
// each user has a chance of (p - (previousP ?? 0)) to be assigned
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autoassign-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
script: |
const externalPrTriager = "kanej";
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Cache

on:
push:
branches:
- main
- pre-release-testing-branch
- changeset-release/main
- v-next
paths:
- ".github/workflows/cache.yml"
- "**/pnpm-lock.yaml"
pull_request:
paths:
- ".github/workflows/cache.yml"
- "**/pnpm-lock.yaml"
workflow_dispatch:

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
cache:
name: Cache
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- uses: actions/checkout@v4
- id: env
uses: ./.github/actions/setup-env
with:
cache-save: true
- name: Install
if: steps.env.outputs.cache-hit != 'true'
run: |
for lockfile in $(find "$(pwd)" -name pnpm-lock.yaml); do
pushd "$(dirname "$lockfile")"
pnpm install --frozen-lockfile --prefer-offline
popd
done
2 changes: 1 addition & 1 deletion .github/workflows/check-changeset-added.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# don't run this check in the changesets PR
if: github.head_ref != 'changeset-release/main'
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
script: |
const pullNumber = context.issue.number;
Expand Down
33 changes: 18 additions & 15 deletions .github/workflows/check-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,34 @@ name: Check Docs Site
on:
push:
branches:
- "**"
- main
paths:
- ".github/workflows/check-docs-site.yml"
- "docs/**"
- "packages/**"
pull_request:
paths:
- ".github/workflows/check-docs-site.yml"
- "docs/**"
- "packages/**"
workflow_dispatch:

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

jobs:
lint:
name: Lint
build:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- uses: ./.github/actions/setup-env
- name: Install
run: pnpm install --frozen-lockfile --prefer-offline
- name: Install Docs
run: cd docs && pnpm install --frozen-lockfile --prefer-offline
- name: lint
run: cd docs && pnpm lint
- name: Build
run: cd docs && pnpm build
working-directory: docs/
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build Docs
working-directory: docs/
run: pnpm build
2 changes: 1 addition & 1 deletion .github/workflows/close-stale-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Close stale issues
uses: actions/stale@v8
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been automatically closed due to inactivity. If you still need help, please reopen the issue and provide the requested information."
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/comment-on-linter-error.yml

This file was deleted.

11 changes: 3 additions & 8 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: E2E tests
on:
push:
branches:
- "main"
- main
pull_request:
branches:
- "main"
- main

jobs:
run-e2e:
Expand All @@ -29,12 +29,7 @@ jobs:
IS_WINDOWS: ${{ matrix.os == 'windows-latest' }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: ./.github/actions/setup-env
- name: Run fixture-projects script
run: |
cd e2e
Expand Down
Loading

0 comments on commit 3644b2b

Please sign in to comment.