Skip to content

Commit

Permalink
ci: build packages individudally
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone committed Aug 15, 2024
1 parent 8345a1f commit 5c5787a
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@ runs:
- name: Install dependencies
shell: bash
run: yarn --immutable
- name: Build
shell: bash
run: yarn build || yarn build
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ jobs:
with:
submodules: recursive
- name: Set up environment
uses: ./.github/actions/setup
uses: ./.github/actions/setup
- name: Build
run: yarn build || yarn build
4 changes: 4 additions & 0 deletions .github/workflows/ci-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-data-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions .github/workflows/ci-horizon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-subgraph-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-token-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/verifydeployed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 5c5787a

Please sign in to comment.