Skip to content

Commit

Permalink
zeaz
Browse files Browse the repository at this point in the history
  • Loading branch information
zapaz committed May 17, 2024
1 parent 1bbc938 commit 0af3cc5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 39 deletions.
56 changes: 27 additions & 29 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 @@ -22,37 +22,35 @@ jobs:
with:
version: nightly

- name: Print forge location
run: which forge
- run: echo $HOME
- run: which forge
- run: forge --version

- name: Print $HOME
run: echo $HOME
# - name: Install node
# uses: actions/setup-node@v3
# with:
# node-version: 20

- name: Install node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.15.8
# - name: Install pnpm
# uses: pnpm/[email protected]
# with:
# version: 8.15.8

- name: Build wp plugin
run: pnpm deploy:plugin
env:
ENVIR: PROD
NODE_DEBUG: false
GIT_BRANCH: main
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
ALCHEMY_API_KEY_POLYGON: ${{ secrets.ALCHEMY_API_KEY_POLYGON }}
ALCHEMY_API_KEY_ARBITRUM: ${{ secrets.ALCHEMY_API_KEY_ARBITRUM }}
ALCHEMY_API_KEY_OPTIMISM: ${{ secrets.ALCHEMY_API_KEY_OPTIMISM }}
ALCHEMY_API_KEY_BASE: ${{ secrets.ALCHEMY_API_KEY_BASE }}
ANKR_API_KEY: ${{ secrets.ANKR_API_KEY }}
COVALENT_API_KEY: ${{ secrets.COVALENT_API_KEY }}
NFT_STORAGE_KEY: ${{ secrets.NFT_STORAGE_KEY }}
# - name: Build wp plugin
# run: pnpm deploy:plugin
# env:
# ENVIR: PROD
# NODE_DEBUG: false
# GIT_BRANCH: main
# INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
# ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
# ALCHEMY_API_KEY_POLYGON: ${{ secrets.ALCHEMY_API_KEY_POLYGON }}
# ALCHEMY_API_KEY_ARBITRUM: ${{ secrets.ALCHEMY_API_KEY_ARBITRUM }}
# ALCHEMY_API_KEY_OPTIMISM: ${{ secrets.ALCHEMY_API_KEY_OPTIMISM }}
# ALCHEMY_API_KEY_BASE: ${{ secrets.ALCHEMY_API_KEY_BASE }}
# ANKR_API_KEY: ${{ secrets.ANKR_API_KEY }}
# COVALENT_API_KEY: ${{ secrets.COVALENT_API_KEY }}
# NFT_STORAGE_KEY: ${{ secrets.NFT_STORAGE_KEY }}

# - name: Deploy
# uses: nk-o/action-wordpress-plugin-deploy@master
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 0af3cc5

Please sign in to comment.