mirror of
https://github.com/luxfi/sudoamm.git
synced 2026-07-25 16:17:09 +00:00
update actions
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user