Skip to content

Commit

Permalink
fix: update GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Manuel committed Apr 8, 2022
1 parent 5b755bc commit 20b1d71
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 71 deletions.
46 changes: 11 additions & 35 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,16 @@ jobs:
run-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

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

- name: Checkout mpl-migration submodule
env:
SSH_KEY_MPL_MIGRATION: ${{secrets.SSH_KEY_MPL_MIGRATION}}
shell: bash
run: |
mkdir $HOME/.ssh
echo "$SSH_KEY_MPL_MIGRATION" > $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_rsa
git submodule update --init --recursive modules/mpl-migration
- name: Checkout revenue-distribution-token submodule
env:
SSH_KEY_RDT: ${{secrets.SSH_KEY_RDT}}
shell: bash
run: |
rm -rf $HOME/.ssh/id_rsa
echo "$SSH_KEY_RDT" > $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_rsa
git submodule update --init --recursive modules/revenue-distribution-token
- name: Checkout public 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 }}
run: ./test.sh -p deep
- name: Install submodules
run: |
git config --global url."https://github.com/".insteadOf "[email protected]:"
git submodule update --init --recursive
- name: Run forge tests
run: ./test.sh -p deep
48 changes: 12 additions & 36 deletions .github/workflows/push-to-main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SC Tests
name: 50k fuzz run test on push to main

on:
push:
Expand All @@ -9,40 +9,16 @@ jobs:
run-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

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

- name: Checkout mpl-migration submodule
env:
SSH_KEY_MPL_MIGRATION: ${{secrets.SSH_KEY_MPL_MIGRATION}}
shell: bash
run: |
mkdir $HOME/.ssh
echo "$SSH_KEY_MPL_MIGRATION" > $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_rsa
git submodule update --init --recursive modules/mpl-migration
- name: Checkout revenue-distribution-token submodule
env:
SSH_KEY_RDT: ${{secrets.SSH_KEY_RDT}}
shell: bash
run: |
rm -rf $HOME/.ssh/id_rsa
echo "$SSH_KEY_RDT" > $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_rsa
git submodule update --init --recursive modules/revenue-distribution-token
- name: Checkout public submodules
shell: bash
run: |
git config --global url."https://github.com/".insteadOf "[email protected]:"
git submodule update --init --recursive
- name: 30k fuzz run test on push to main
env:
ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }}
run: ./test.sh -p super_deep
- name: Install submodules
run: |
git config --global url."https://github.com/".insteadOf "[email protected]:"
git submodule update --init --recursive
- name: Run forge tests
run: ./test.sh -p super_deep

0 comments on commit 20b1d71

Please sign in to comment.