diff --git a/.github/workflows/1155.yml b/.github/workflows/1155.yml index 0eba44f0a..6d573bfe0 100644 --- a/.github/workflows/1155.yml +++ b/.github/workflows/1155.yml @@ -14,6 +14,18 @@ jobs: with: package_folder: packages/1155-contracts + storage_layout: + needs: build + uses: ./.github/workflows/storage_layout.yml + with: + package_folder: packages/1155-contracts + + contract_sizes: + needs: build + uses: ./.github/workflows/contract_sizes.yml + with: + package_folder: packages/1155-contracts + coverage: uses: ./.github/workflows/coverage.yml with: diff --git a/.github/workflows/contract_sizes.yml b/.github/workflows/contract_sizes.yml new file mode 100644 index 000000000..272e8790e --- /dev/null +++ b/.github/workflows/contract_sizes.yml @@ -0,0 +1,27 @@ +on: + workflow_call: + inputs: + package_folder: + required: true + type: string + +jobs: + check: + strategy: + fail-fast: true + + name: Contract sizes + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install node deps and founry + uses: ./.github/actions/setup_deps + + - name: Cache build + uses: ./.github/actions/cache_foundry_build + with: + package_folder: ${{ inputs.package_folder }} + + - name: Check contract sizes + run: cd ${{ inputs.package_folder }} && yarn build:sizes diff --git a/.github/workflows/protocol-rewards.yml b/.github/workflows/protocol-rewards.yml index 2e30c8fae..70a6306a3 100644 --- a/.github/workflows/protocol-rewards.yml +++ b/.github/workflows/protocol-rewards.yml @@ -14,6 +14,12 @@ jobs: with: package_folder: packages/protocol-rewards + contract_sizes: + needs: build + uses: ./.github/workflows/contract_sizes.yml + with: + package_folder: packages/protocol-rewards + coverage: uses: ./.github/workflows/coverage.yml with: diff --git a/.github/workflows/storage_layout.yml b/.github/workflows/storage_layout.yml new file mode 100644 index 000000000..cf53c3559 --- /dev/null +++ b/.github/workflows/storage_layout.yml @@ -0,0 +1,27 @@ +on: + workflow_call: + inputs: + package_folder: + required: true + type: string + +jobs: + check: + strategy: + fail-fast: true + + name: Storage layout inspection + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install node deps and founry + uses: ./.github/actions/setup_deps + + - name: Cache build + uses: ./.github/actions/cache_foundry_build + with: + package_folder: ${{ inputs.package_folder }} + + - name: "Inspect Storage Layout" + run: cd ${{ inputs.package_folder}} && yarn storage-inspect:check