Skip to content

Commit

Permalink
zerz
Browse files Browse the repository at this point in the history
  • Loading branch information
zapaz committed May 17, 2024
1 parent 1bbc938 commit f364ff9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/deploy-wp-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: DEPLOY wp plugin
on:
push:
branches:
- none
- dev
# tags:
# - "v*"

Expand All @@ -17,17 +17,6 @@ jobs:
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Print forge location
run: which forge

- name: Print $HOME
run: echo $HOME

- name: Install node
uses: actions/setup-node@v3
with:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/test-forge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
on: [push]
name: TEST Foundry Installation
on:
push:
branches:
- none

name: test

jobs:
check:
Expand All @@ -16,9 +19,5 @@ jobs:
with:
version: nightly

- name: Run tests
run: forge --version

- run: echo $HOME
- run: which forge
- run: forge --version

6 changes: 3 additions & 3 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"main": "index.js",
"scripts": {
"clean": "forge clean && rm -rf cache-forge out node_modules lib types artifacts broadcast .turbo && git restore lib",
"postinstall": "pnpm foundryup:install && pnpm forge:install && pnpm forge:update",
"postinstall": "pnpm forge:install && pnpm forge:update",
"build": "pnpm build:forge && pnpm build:typechain",
"build:forge": "$HOME/.foundry/bin/forge build",
"build:typechain": "typechain --target ethers-v5 --out-dir types out/**/*.json",
Expand All @@ -38,8 +38,8 @@
"validate:only": "pnpm deploy:all --sender $SENDER",
"format": "pnpm format:solidity",
"format:solidity": "$HOME/.foundry/bin/forge fmt",
"foundryup:install": "command -v foundryup >/dev/null 2>&1 || (curl -L https://foundry.paradigm.xyz | bash && command -v foundryup)",
"forge:install": "command -v forge >/dev/null 2>&1 || ($HOME/.foundry/bin/foundryup && command -v forge)",
"foundryup:install": "command -v foundryup >/dev/null 2>&1 || curl -L https://foundry.paradigm.xyz | bash",
"forge:install": "command -v forge >/dev/null 2>&1 || (pnpm foundryup:install && foundryup)",
"forge:update": "git submodule update --recursive",
"tests": "pnpm tests:forge",
"tests:forge": "forge test"
Expand Down

0 comments on commit f364ff9

Please sign in to comment.