Skip to content

Commit

Permalink
test7
Browse files Browse the repository at this point in the history
  • Loading branch information
zapaz committed May 17, 2024
1 parent 78860df commit 4d2a16b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .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:
- dev
- integ
# tags:
# - "v*"

Expand Down
31 changes: 13 additions & 18 deletions .github/workflows/test-forge.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
name: TEST forge

on:
push:
branches:
- deployWithGitHubAction
- dev

jobs:
check:
name: Test smartcontracts with forge
runs-on: ubuntu-22.04

name: Foundry project
runs-on: ubuntu-latest
steps:
- name: CHECKOUT kredeum nfts

uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
submodules: recursive

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

- name: BUILD forge
working-directory: contracts
run: forge build
- name: Print forge location
run: which forge

- name: Print $HOME
run: echo $HOME

- name: Get forge version
run: forge --version

- name: TEST forge
working-directory: contracts
run: forge test -vvv
9 changes: 4 additions & 5 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
"main": "index.js",
"scripts": {
"clean": "forge clean && rm -rf cache-forge out node_modules lib types artifacts broadcast .turbo && git restore lib",
"postinstall": "pnpm install:foundry && pnpm forge:update",
"install:foundry": "command -v forge >/dev/null 2>&1 || pnpm foundry:install",
"postinstall": "pnpm foundry:install && pnpm forge:update",
"build": "pnpm build:forge && pnpm build:typechain",
"build:forge": "$HOME/.foundry/bin/forge build",
"build:forge": "forge build",
"build:typechain": "typechain --target ethers-v5 --out-dir types out/**/*.json",
"check": "pnpm check:solidity",
"check:solidity": "solhint src/**/*.sol",
Expand All @@ -38,8 +37,8 @@
"deploy:all": "forge script scripts/DeployAllCurrent.s.sol",
"validate:only": "pnpm deploy:all --sender $SENDER",
"format": "pnpm format:solidity",
"format:solidity": "$HOME/.foundry/bin/forge fmt",
"foundry:install": "curl -L https://foundry.paradigm.xyz | bash && $HOME/.foundry/bin/foundryup",
"format:solidity": "forge fmt",
"foundry:install": "command -v forge >/dev/null 2>&1 || curl -L https://foundry.paradigm.xyz | bash foundryup",
"forge:update": "git submodule update --recursive",
"tests": "pnpm tests:forge",
"tests:forge": "forge test"
Expand Down

0 comments on commit 4d2a16b

Please sign in to comment.