Skip to content

Commit 1c72d22

Browse files
committed
chore: update tooling to support eMode diffing on newly created eModes
replaces bun with default npm
1 parent ec33f4f commit 1c72d22

File tree

8 files changed

+21
-1062
lines changed

8 files changed

+21
-1062
lines changed

.github/workflows/comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
comment:
1818
name: Comment Bot
1919
runs-on: ubuntu-latest
20-
# workflow run triggeres on all types of "completed" including "cancelled" and similar
20+
# workflow run triggers on all types of "completed" including "cancelled" and similar
2121
# we want this action to only run on a success & failure though
2222
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure' }}
2323
steps:

.github/workflows/test.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6
1920
with:
20-
submodules: recursive
21-
- uses: oven-sh/setup-bun@8f24390df009a496891208e5e36b8a1de1f45135
22-
- name: Install node dependencies
23-
run: bun install
21+
node-version-file: .nvmrc
22+
cache: "npm"
23+
24+
- name: install
25+
run: npm ci --prefer-offline --no-audit
26+
2427
- name: lint
25-
run: bun run lint --check
28+
run: npm run lint
2629

2730
test:
2831
name: Foundry build n test
@@ -33,15 +36,18 @@ jobs:
3336
- uses: actions/checkout@v4
3437
with:
3538
submodules: recursive
36-
- uses: oven-sh/setup-bun@8f24390df009a496891208e5e36b8a1de1f45135
39+
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6
40+
with:
41+
node-version-file: .nvmrc
42+
cache: "npm"
3743

3844
- name: Install Foundry
3945
uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773
4046
with:
4147
version: nightly
4248

4349
- name: Install node dependencies
44-
run: bun install
50+
run: npm ci --prefer-offline --no-audit
4551

4652
- name: Run Forge build
4753
run: |

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ cp .env.example .env
2424

2525
forge install
2626

27-
# optional, to install prettier
28-
bun install
27+
# required for tests & linting
28+
npm install
2929
```
3030

3131
<br>

bun.lockb

-89 KB
Binary file not shown.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "aave-v3-origin",
33
"version": "1.0.0",
44
"scripts": {
5-
"lint": "prettier .",
6-
"lint:fix": "bun run lint -- --write"
5+
"lint": "prettier . --check",
6+
"lint:fix": "prettier . --write"
77
},
88
"repository": {
99
"type": "git",
@@ -22,7 +22,7 @@
2222
"prettier-plugin-solidity": "^1.1.1"
2323
},
2424
"dependencies": {
25-
"@bgd-labs/aave-cli": "^1.0.0",
25+
"@bgd-labs/aave-cli": "^1.1.4",
2626
"catapulta-verify": "^1.1.1"
2727
}
2828
}

tests/utils/DiffUtils.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ contract DiffUtils is Test {
2222

2323
string[] memory inputs = new string[](7);
2424
inputs[0] = 'npx';
25-
inputs[1] = '@bgd-labs/aave-cli@^1.0.0';
25+
inputs[1] = '@bgd-labs/aave-cli@^1.1.4';
2626
inputs[2] = 'diff-snapshots';
2727
inputs[3] = beforePath;
2828
inputs[4] = afterPath;

0 commit comments

Comments
 (0)