Skip to content

Commit

Permalink
chore: justfile cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Oct 31, 2024
1 parent b250ae8 commit dcf26af
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 191 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/e2e-evm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ jobs:
node-version: 18

- name: "just install"
run: |
hardhat compile
hardhat typechain
run: just install
working-directory: "evm-e2e"

- name: "Launch localnet"
Expand All @@ -79,9 +77,7 @@ jobs:
sleep 10
- name: "Run tests (just test)"
run: |
just test
run: just test
working-directory: "evm-e2e"
env:
JSON_RPC_ENDPOINT: http://127.0.0.1:8545
Expand Down
23 changes: 4 additions & 19 deletions evm-e2e/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,15 @@ setup:
#!/usr/bin/env bash
just -l

# Install all dependencies
install:
#!/usr/bin/env bash
# Check if the given binary is in the $PATH.
the_cmd="bun"
if which "$the_cmd" >/dev/null 2>&1; then
echo "✅ bun is installed."
else
log_error "$the_cmd is not present in \$PATH"
npm install -g bun@1.1.12
fi

bun install

# Generate types from compiled contracts
gen-types:
bun run typechain --target=ethers-v6 contracts/*Compiled.json
install:
npm install
hardhat typechain

# Runs the E2E tests
test:
npm test

# Format
fmt:
bun run prettier --write "test/**/*.ts"
npm run format
164 changes: 0 additions & 164 deletions evm-e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions evm-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"@typechain/ethers-v6": "^0.5.1",
"@typechain/hardhat": "^9.1.0",
"@types/jest": "^29.5.12",
"bun": "^1.1.30",
"bun-types": "^1.0.3",
"dotenv": "^16.4.5",
"eslint": "^8.0.0",
"eslint-config-airbnb": "^19.0.4",
Expand Down

0 comments on commit dcf26af

Please sign in to comment.