Merge pull request #8 from maple-labs/release #6
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
name: Forge Tests | |
on: | |
push: | |
branches: [main] | |
jobs: | |
e2e_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git config --global url."https://github.com/".insteadOf "[email protected]:" | |
git submodule update --init --recursive | |
- name: Run Forge tests | |
env: | |
ETH_RPC_URL: ${{secrets.ETH_RPC_URL}} | |
BASE_RPC_URL: ${{secrets.BASE_RPC_URL}} | |
run: make e2e profile=production | |
integration_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git config --global url."https://github.com/".insteadOf "[email protected]:" | |
git submodule update --init --recursive | |
- name: Run Forge tests | |
env: | |
ETH_RPC_URL: ${{secrets.ETH_RPC_URL}} | |
BASE_RPC_URL: ${{secrets.BASE_RPC_URL}} | |
run: make integration profile=production | |
fuzz_tests: | |
runs-on: | |
group: SC-HighMemory | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git config --global url."https://github.com/".insteadOf "[email protected]:" | |
git submodule update --init --recursive | |
- name: Run Forge tests | |
env: | |
ETH_RPC_URL: ${{secrets.ETH_RPC_URL}} | |
BASE_RPC_URL: ${{secrets.BASE_RPC_URL}} | |
run: ./test.sh -p super_deep -t testFuzz | |
invariant_tests: | |
runs-on: | |
group: SC-HighMemory | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git config --global url."https://github.com/".insteadOf "[email protected]:" | |
git submodule update --init --recursive | |
- name: Run Forge tests | |
env: | |
ETH_RPC_URL: ${{secrets.ETH_RPC_URL}} | |
BASE_RPC_URL: ${{secrets.BASE_RPC_URL}} | |
run: make invariant profile=super_deep | |
protocol-upgrade: | |
runs-on: | |
group: SC-HighMemory | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git config --global url."https://github.com/".insteadOf "[email protected]:" | |
git submodule update --init --recursive | |
- name: Run Forge tests | |
env: | |
ETH_RPC_URL: ${{secrets.ETH_RPC_URL}} | |
BASE_RPC_URL: ${{secrets.BASE_RPC_URL}} | |
run: make protocol-upgrade | |
scenario_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- uses: actions/setup-node@v3 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git config --global url."https://github.com/".insteadOf "[email protected]:" | |
git submodule update --init --recursive | |
- name: Run Forge tests | |
env: | |
ETH_RPC_URL: ${{secrets.ETH_RPC_URL}} | |
BASE_RPC_URL: ${{secrets.BASE_RPC_URL}} | |
run: make scenario |