Skip to content

Commit 5c5787a

Browse files
committed
ci: build packages individudally
Signed-off-by: Tomás Migone <[email protected]>
1 parent 8345a1f commit 5c5787a

9 files changed

+35
-6
lines changed

.github/actions/setup/action.yml

-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,3 @@ runs:
1717
- name: Install dependencies
1818
shell: bash
1919
run: yarn --immutable
20-
- name: Build
21-
shell: bash
22-
run: yarn build || yarn build

.github/workflows/build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ jobs:
2020
with:
2121
submodules: recursive
2222
- name: Set up environment
23-
uses: ./.github/actions/setup
23+
uses: ./.github/actions/setup
24+
- name: Build
25+
run: yarn build || yarn build

.github/workflows/ci-contracts.yml

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
submodules: recursive
2525
- name: Set up environment
2626
uses: ./.github/actions/setup
27+
- name: Build
28+
run: |
29+
pushd packages/contracts
30+
yarn build || yarn build
2731
- name: Run tests
2832
run: |
2933
pushd packages/contracts

.github/workflows/ci-data-edge.yml

+4
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ jobs:
2222
uses: actions/checkout@v4
2323
- name: Set up environment
2424
uses: ./.github/actions/setup
25+
- name: Build
26+
run: |
27+
pushd packages/data-edge
28+
yarn build
2529
- name: Run tests
2630
run: yarn test

.github/workflows/ci-horizon.yml

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
submodules: recursive
2525
- name: Set up environment
2626
uses: ./.github/actions/setup
27+
- name: Build
28+
run: |
29+
pushd packages/horizon
30+
yarn build
2731
- name: Run tests
2832
run: |
2933
pushd packages/horizon

.github/workflows/ci-subgraph-service.yml

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
submodules: recursive
2525
- name: Set up environment
2626
uses: ./.github/actions/setup
27+
- name: Build
28+
run: |
29+
pushd packages/subgraph-service
30+
yarn build
2731
- name: Run tests
2832
run: |
2933
pushd packages/subgraph-service

.github/workflows/ci-token-dist.yml

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
submodules: recursive
2626
- name: Set up environment
2727
uses: ./.github/actions/setup
28+
- name: Build
29+
run: |
30+
pushd packages/token-distribution
31+
yarn build
2832
- name: Run tests
2933
run: |
3034
pushd packages/token-distribution

.github/workflows/e2e-contracts.yml

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
submodules: recursive
3535
- name: Set up environment
3636
uses: ./.github/actions/setup
37+
- name: Build
38+
run: |
39+
pushd packages/contracts
40+
yarn build || yarn build
3741
- name: Run e2e tests
3842
run: |
3943
git clone https://github.com/OffchainLabs/nitro-testnode/

.github/workflows/verifydeployed.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ jobs:
3030
- name: Set up environment
3131
uses: ./.github/actions/setup
3232

33-
- name: Compile contracts
34-
run: yarn build
33+
- name: Build
34+
run: |
35+
pushd packages/contracts
36+
yarn build || yarn build
3537
3638
- name: Save build artifacts
3739
uses: actions/upload-artifact@v3
@@ -50,6 +52,10 @@ jobs:
5052
uses: actions/checkout@v3
5153
- name: Set up environment
5254
uses: ./.github/actions/setup
55+
- name: Build
56+
run: |
57+
pushd packages/contracts
58+
yarn build || yarn build
5359
- name: Get build artifacts
5460
uses: actions/download-artifact@v3
5561
with:

0 commit comments

Comments
 (0)