-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Migrate to Configuration Variables and
pnpm
& Bump Deps (#65)
Signed-off-by: Pascal Marco Caversaccio <[email protected]> Co-authored-by: Pascal Marco Caversaccio <[email protected]>
- Loading branch information
1 parent
f6fb88d
commit e51c641
Showing
32 changed files
with
11,892 additions
and
8,629 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 |
---|---|---|
|
@@ -10,3 +10,4 @@ trim_trailing_whitespace = false | |
|
||
[*.sol] | ||
indent_size = 4 | ||
max_line_length = 120 |
This file was deleted.
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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
// Two different examples of network setups for the `xdeployer` plugin (https://github.com/pcaversaccio/xdeployer) | ||
// An example of the network setup for the `xdeployer` plugin (https://github.com/pcaversaccio/xdeployer) | ||
|
||
networks: ["mumbai", "fuji", "bscTestnet", "fantomTestnet", "goerli"], | ||
rpcUrls: [process.env.POLYGON_TESTNET_URL, process.env.AVALANCHE_TESTNET_URL, process.env.BSC_TESTNET_URL, process.env.FANTOM_TESTNET_URL, process.env.ETH_GOERLI_TESTNET_URL], | ||
|
||
networks: ["polygon", "avalanche", "bscMain", "fantomMain", "ethMain"], | ||
rpcUrls: [process.env.POLYGON_MAINNET_URL, process.env.AVALANCHE_MAINNET_URL, process.env.BSC_MAINNET_URL, process.env.FANTOM_MAINNET_URL, process.env.ETH_MAINNET_URL], | ||
networks: ["sepolia", "optimismTestnet", "arbitrumSepolia"], | ||
rpcUrls: [vars.get("ETH_SEPOLIA_TESTNET_URL", "https://rpc.sepolia.org"), vars.get("OPTIMISM_TESTNET_URL", "https://goerli.optimism.io"), vars.get("ARBITRUM_SEPOLIA_URL", "https://sepolia-rollup.arbitrum.io/rpc")], |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,29 +20,35 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get Yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
run_install: false | ||
|
||
- name: Get pnpm cache directory path | ||
id: pnpm-cache-dir-path | ||
run: echo "dir=$(pnpm store path --silent)" >> $GITHUB_OUTPUT | ||
|
||
- name: Restore Yarn cache | ||
- name: Restore pnpm cache | ||
uses: actions/cache@v3 | ||
id: yarn-cache | ||
id: pnpm-cache | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
path: ${{ steps.pnpm-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
${{ runner.os }}-pnpm-store- | ||
- name: Use Node.js ${{ matrix.node_version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
|
||
- name: Install Yarn project with a clean slate | ||
run: yarn install --prefer-offline --frozen-lockfile | ||
- name: Install pnpm project with a clean slate | ||
run: pnpm install --prefer-offline --frozen-lockfile | ||
|
||
- name: Prettier and lint | ||
run: yarn lint:check | ||
run: pnpm lint:check | ||
|
||
codespell: | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -59,7 +65,7 @@ jobs: | |
uses: codespell-project/[email protected] | ||
with: | ||
check_filenames: true | ||
skip: ./.git,./contracts/lib,yarn.lock | ||
skip: ./.git,pnpm-lock.yaml | ||
|
||
validate-links: | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -84,4 +90,4 @@ jobs: | |
run: gem install awesome_bot | ||
|
||
- name: Validate URLs | ||
run: awesome_bot ./*.md contracts/src/*.sol contracts/test/*.sol --request-delay 0.4 --white-list http://localhost:24012,https://trezor.io | ||
run: awesome_bot ./*.md contracts/src/*.sol contracts/test/*.sol --request-delay 0.4 --white-list http://localhost:24012 |
Oops, something went wrong.