-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rossy/various-cli-fixes
- Loading branch information
Showing
12 changed files
with
1,911 additions
and
436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,8 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
@@ -71,6 +73,10 @@ jobs: | |
needs: [yarn-install] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# check out full history | ||
fetch-depth: 0 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
|
@@ -90,30 +96,25 @@ jobs: | |
exit 1 | ||
fi | ||
test-ts: | ||
test: | ||
runs-on: ubuntu-latest | ||
needs: [yarn-build] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
|
||
- name: Install Foundry | ||
uses: onbjerg/foundry-toolchain@v1 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ./* | ||
key: ${{ github.sha }} | ||
|
||
- name: sdk | ||
run: yarn workspace @hyperlane-xyz/sdk run test | ||
|
||
- name: helloworld | ||
run: yarn workspace @hyperlane-xyz/helloworld run test | ||
|
||
- name: cli | ||
run: yarn workspace @hyperlane-xyz/cli run test | ||
|
||
- name: infra | ||
run: yarn workspace @hyperlane-xyz/infra run test | ||
- name: Unit Tests | ||
run: yarn test | ||
|
||
test-cli: | ||
runs-on: ubuntu-latest | ||
|
@@ -155,64 +156,15 @@ jobs: | |
- name: Test ${{ matrix.environment }} ${{ matrix.module }} deployment (check, deploy, govern, check again) | ||
run: cd typescript/infra && ./fork.sh ${{ matrix.environment }} ${{ matrix.module }} | ||
|
||
test-sol: | ||
env: | ||
ETHERSCAN_API_KEY: '' | ||
|
||
coverage: | ||
runs-on: ubuntu-latest | ||
needs: [yarn-build] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ./* | ||
key: ${{ github.sha }} | ||
fetch-depth: 0 | ||
|
||
- name: yarn-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
.yarn/cache | ||
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }} | ||
|
||
- name: Install Foundry | ||
uses: onbjerg/foundry-toolchain@v1 | ||
|
||
- name: Install dependencies | ||
run: cd solidity && forge install | ||
|
||
- name: Forge build | ||
run: cd solidity && forge build --build-info | ||
|
||
#- name: gas | ||
# run: yarn workspace @hyperlane-xyz/core run gas-ci | ||
|
||
- name: Unit tests | ||
run: yarn workspace @hyperlane-xyz/core run test | ||
|
||
- name: Static analysis | ||
uses: crytic/[email protected] | ||
id: slither | ||
with: | ||
target: 'solidity/' | ||
slither-config: 'solidity/slither.config.json' | ||
sarif: results.sarif | ||
fail-on: none | ||
ignore-compile: true | ||
|
||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: ${{ steps.slither.outputs.sarif }} | ||
|
||
coverage-sol: | ||
runs-on: ubuntu-latest | ||
needs: [yarn-build] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ./* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
id-token: write | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
# check out full history | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: Setup Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install Dependencies | ||
run: yarn | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
publish: yarn release | ||
env: | ||
NPM_CONFIG_PROVENANCE: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: static-analysis | ||
|
||
on: | ||
# Triggers the workflow on pull request against main | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- 'solidity/**' | ||
|
||
jobs: | ||
slither: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: yarn-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
.yarn/cache | ||
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }} | ||
|
||
- run: yarn workspaces focus @hyperlane-xyz/core | ||
|
||
- name: Static analysis | ||
uses: crytic/[email protected] | ||
id: slither | ||
with: | ||
target: 'solidity/' | ||
slither-config: 'solidity/slither.config.json' | ||
sarif: results.sarif | ||
fail-on: none | ||
|
||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: ${{ steps.slither.outputs.sarif }} |
670 changes: 335 additions & 335 deletions
670
.yarn/releases/yarn-4.0.1.cjs → .yarn/releases/yarn-4.0.2.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,19 +12,23 @@ | |
"lint-staged": "^12.4.3", | ||
"prettier": "^2.8.8" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@changesets/cli": "^2.26.2" | ||
}, | ||
"packageManager": "[email protected]", | ||
"private": true, | ||
"scripts": { | ||
"build": "yarn workspaces foreach --all --parallel --topological run build", | ||
"clean": "yarn workspaces foreach --all --parallel run clean", | ||
"prettier": "yarn workspaces foreach --all --parallel run prettier", | ||
"lint": "yarn workspaces foreach --all --parallel run lint", | ||
"test": "yarn workspaces foreach --all --parallel run test", | ||
"coverage": "yarn workspaces foreach --all --parallel run coverage", | ||
"version:prepare": "yarn workspaces foreach --all --no-private --topological version --immediate", | ||
"publish:all": "yarn workspaces foreach --all --no-private --topological npm publish --access public", | ||
"postinstall": "husky install", | ||
"version:check": "yarn version check --interactive" | ||
"prettier": "yarn workspaces foreach --since --parallel run prettier", | ||
"lint": "yarn workspaces foreach --since --parallel run lint", | ||
"test": "yarn workspaces foreach --since --parallel run test", | ||
"coverage": "yarn workspaces foreach --since --parallel run coverage", | ||
"version:prepare": "yarn changeset version", | ||
"version:check": "yarn changeset status", | ||
"publish:all": "yarn changeset publish", | ||
"release": "yarn build && yarn publish:all", | ||
"postinstall": "husky install" | ||
}, | ||
"workspaces": [ | ||
"solidity", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.