Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 4c96705

Browse files
committed
WIP integration CI
1 parent d5520fa commit 4c96705

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.github/workflows/pull-request.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,19 @@ jobs:
120120
filters: |
121121
devenv:
122122
- 'devenv/**'
123-
123+
- uses: actions/upload-artifact@v3
124+
with:
125+
name: docker-images
126+
path: /tmp/images
124127
- name: Checkout
125128
if: steps.changes.outputs.devenv == 'true'
126129
uses: actions/checkout@v3
127130

128131
- name: Build devenv containers
129132
if: steps.changes.outputs.devenv == 'true'
130-
run: ./devenv/build.sh
133+
run: |
134+
./devenv/build.sh
135+
docker save -o /tmp/images/bulk.tar $(docker images -q)
131136
132137
vitest:
133138
runs-on: ubuntu-latest
@@ -146,3 +151,19 @@ jobs:
146151
working-directory: ./romeo/asset-contract
147152
- run: npm run test
148153
working-directory: ./romeo/asset-contract
154+
155+
integretion:
156+
runs-on: ubuntu-latest
157+
needs: ["linter", "devenv"]
158+
steps:
159+
- uses: actions/checkout@v3
160+
- uses: actions/download-artifact@v3
161+
with:
162+
name: docker-images
163+
path: /tmp/images
164+
- uses: davidB/rust-cargo-make@v1
165+
with:
166+
version: "0.36.13"
167+
168+
- run: "docker load --input /tmp/images/bulk.tar"
169+
#- run: "cargo make integration"

Makefile.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,17 @@ dependencies = ["clean", "format", "coverage", "release"]
187187

188188
[tasks.default]
189189
run_task = "pr-validation"
190+
191+
# Integration
192+
# ----------
193+
#[tasks.build-devenv]
194+
#command = "./build.sh"
195+
196+
[tasks.build-testbed]
197+
command = "pushd integration && ./bin/build && popd"
198+
199+
200+
[tasks.integration]
201+
#dependencies = ["build-devenv", "build-testbed"]
202+
dependencies = ["build-testbed"]
203+
command = "./integration/bin/test"

0 commit comments

Comments
 (0)