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

Commit 2cd98d7

Browse files
committed
WIP integration CI
1 parent 36a52ba commit 2cd98d7

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.github/workflows/pull-request.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,20 @@ 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+
mkdir /tmp/images
136+
docker save -o /tmp/images/bulk.tar $(docker images -q)
131137
132138
vitest:
133139
runs-on: ubuntu-latest
@@ -146,3 +152,19 @@ jobs:
146152
working-directory: ./romeo/asset-contract
147153
- run: npm run test
148154
working-directory: ./romeo/asset-contract
155+
156+
integretion:
157+
runs-on: ubuntu-latest
158+
needs: ["linter", "devenv"]
159+
steps:
160+
- uses: actions/checkout@v3
161+
- uses: actions/download-artifact@v3
162+
with:
163+
name: docker-images
164+
path: /tmp/images
165+
- uses: davidB/rust-cargo-make@v1
166+
with:
167+
version: "0.36.13"
168+
169+
- run: "docker load --input /tmp/images/bulk.tar"
170+
#- 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)