From 5c5787a4ca5d344c0ec6dfb48af0843d5e70cd0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Migone?= Date: Thu, 15 Aug 2024 17:02:59 -0300 Subject: [PATCH] ci: build packages individudally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Migone --- .github/actions/setup/action.yml | 3 --- .github/workflows/build.yml | 4 +++- .github/workflows/ci-contracts.yml | 4 ++++ .github/workflows/ci-data-edge.yml | 4 ++++ .github/workflows/ci-horizon.yml | 4 ++++ .github/workflows/ci-subgraph-service.yml | 4 ++++ .github/workflows/ci-token-dist.yml | 4 ++++ .github/workflows/e2e-contracts.yml | 4 ++++ .github/workflows/verifydeployed.yml | 10 ++++++++-- 9 files changed, 35 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index baeec7b27..310c412bd 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -17,6 +17,3 @@ runs: - name: Install dependencies shell: bash run: yarn --immutable - - name: Build - shell: bash - run: yarn build || yarn build diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9536e68e3..2a7a8b2ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,4 +20,6 @@ jobs: with: submodules: recursive - name: Set up environment - uses: ./.github/actions/setup \ No newline at end of file + uses: ./.github/actions/setup + - name: Build + run: yarn build || yarn build \ No newline at end of file diff --git a/.github/workflows/ci-contracts.yml b/.github/workflows/ci-contracts.yml index 7dca1bfde..d60ab0d9b 100644 --- a/.github/workflows/ci-contracts.yml +++ b/.github/workflows/ci-contracts.yml @@ -24,6 +24,10 @@ jobs: submodules: recursive - name: Set up environment uses: ./.github/actions/setup + - name: Build + run: | + pushd packages/contracts + yarn build || yarn build - name: Run tests run: | pushd packages/contracts diff --git a/.github/workflows/ci-data-edge.yml b/.github/workflows/ci-data-edge.yml index 065e0f964..a8046aa7e 100644 --- a/.github/workflows/ci-data-edge.yml +++ b/.github/workflows/ci-data-edge.yml @@ -22,5 +22,9 @@ jobs: uses: actions/checkout@v4 - name: Set up environment uses: ./.github/actions/setup + - name: Build + run: | + pushd packages/data-edge + yarn build - name: Run tests run: yarn test \ No newline at end of file diff --git a/.github/workflows/ci-horizon.yml b/.github/workflows/ci-horizon.yml index d450d1264..159ca7b4d 100644 --- a/.github/workflows/ci-horizon.yml +++ b/.github/workflows/ci-horizon.yml @@ -24,6 +24,10 @@ jobs: submodules: recursive - name: Set up environment uses: ./.github/actions/setup + - name: Build + run: | + pushd packages/horizon + yarn build - name: Run tests run: | pushd packages/horizon diff --git a/.github/workflows/ci-subgraph-service.yml b/.github/workflows/ci-subgraph-service.yml index bda15deff..141c3549d 100644 --- a/.github/workflows/ci-subgraph-service.yml +++ b/.github/workflows/ci-subgraph-service.yml @@ -24,6 +24,10 @@ jobs: submodules: recursive - name: Set up environment uses: ./.github/actions/setup + - name: Build + run: | + pushd packages/subgraph-service + yarn build - name: Run tests run: | pushd packages/subgraph-service diff --git a/.github/workflows/ci-token-dist.yml b/.github/workflows/ci-token-dist.yml index c0e73b072..b991c1608 100644 --- a/.github/workflows/ci-token-dist.yml +++ b/.github/workflows/ci-token-dist.yml @@ -25,6 +25,10 @@ jobs: submodules: recursive - name: Set up environment uses: ./.github/actions/setup + - name: Build + run: | + pushd packages/token-distribution + yarn build - name: Run tests run: | pushd packages/token-distribution diff --git a/.github/workflows/e2e-contracts.yml b/.github/workflows/e2e-contracts.yml index c84adb1a0..ce5540add 100644 --- a/.github/workflows/e2e-contracts.yml +++ b/.github/workflows/e2e-contracts.yml @@ -34,6 +34,10 @@ jobs: submodules: recursive - name: Set up environment uses: ./.github/actions/setup + - name: Build + run: | + pushd packages/contracts + yarn build || yarn build - name: Run e2e tests run: | git clone https://github.com/OffchainLabs/nitro-testnode/ diff --git a/.github/workflows/verifydeployed.yml b/.github/workflows/verifydeployed.yml index 9de43994c..db5b90133 100644 --- a/.github/workflows/verifydeployed.yml +++ b/.github/workflows/verifydeployed.yml @@ -30,8 +30,10 @@ jobs: - name: Set up environment uses: ./.github/actions/setup - - name: Compile contracts - run: yarn build + - name: Build + run: | + pushd packages/contracts + yarn build || yarn build - name: Save build artifacts uses: actions/upload-artifact@v3 @@ -50,6 +52,10 @@ jobs: uses: actions/checkout@v3 - name: Set up environment uses: ./.github/actions/setup + - name: Build + run: | + pushd packages/contracts + yarn build || yarn build - name: Get build artifacts uses: actions/download-artifact@v3 with: