Release contract 20230728.2 #522
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
pull_request: | |
types: | |
- opened | |
- edited | |
name: test | |
jobs: | |
check: | |
name: Unit & Integration Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [16] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
submodules: recursive | |
node-version: ${{ matrix.node }} | |
cache: yarn | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install submodules | |
run: git submodule update --init | |
- name: Install yarn dependencies | |
run: yarn | |
- name: Run forge clean | |
run: forge clean | |
- name: Run forge install | |
run: forge install | |
- name: Run forge build | |
run: forge build | |
- name: Run forge tests | |
run: forge test | |
- name: Compile hardhat | |
env: | |
CI: true | |
DEPLOYER_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }} | |
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | |
run: | | |
npx hardhat compile | |
- name: Run hardhat tests | |
env: | |
CI: true | |
DEPLOYER_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }} | |
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | |
run: | | |
npx hardhat test | |
- name: Run snapshot | |
run: forge snapshot |