update actions

This commit is contained in:
Owen
2022-06-03 14:01:27 -07:00
parent c5f3a289f9
commit b75ae80298
2 changed files with 6 additions and 26 deletions
+1 -21
View File
@@ -20,24 +20,4 @@ jobs:
version: nightly
- name: Run tests
run: make test
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: cachix/install-nix-action@v13
- uses: cachix/cachix-action@v10
with:
name: dapp
- name: Install dependencies
run: nix-shell --run 'dapp update'
- name: Build the contracts
run: nix-shell --run 'dapp build'
- name: Deploy and run checks
run: nix-shell --run './scripts/test-deploy.sh'
run: make test
+5 -5
View File
@@ -12,18 +12,18 @@ npm:; yarn install
# install solc version
# example to install other versions: `make solc 0_8_2`
SOLC_VERSION := 0_8_10
SOLC_VERSION := 0_8_13
solc:; nix-env -f https://github.com/dapphub/dapptools/archive/master.tar.gz -iA solc-static-versions.solc_${SOLC_VERSION}
# Build & test
build :; forge build --optimize --optimize-runs 1000000
test :; forge test --optimize --optimize-runs 1000000 # --ffi # enable if you need the `ffi` cheat code on HEVM
fuzz :; forge test -v --optimize --optimize-runs 1000000
build :; forge build --optimize
test :; forge test --optimize
fuzz :; forge test -v --optimize
clean :; forge clean
lint :; yarn run lint
estimate :; ./scripts/estimate-gas.sh ${contract}
size :; ./scripts/contract-size.sh ${contract}
snapshot :; forge snapshot --optimize --optimizer-runs 1000000
snapshot :; forge snapshot --optimize
test-deploy :; ./scripts/test-deploy.sh
# Deployment helpers