Skip to content

Commit

Permalink
WIP integration CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CAGS295 committed Oct 19, 2023
1 parent 36a52ba commit 2cd98d7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,20 @@ jobs:
filters: |
devenv:
- 'devenv/**'
- uses: actions/upload-artifact@v3
with:
name: docker-images
path: /tmp/images
- name: Checkout
if: steps.changes.outputs.devenv == 'true'
uses: actions/checkout@v3

- name: Build devenv containers
if: steps.changes.outputs.devenv == 'true'
run: ./devenv/build.sh
run: |
./devenv/build.sh
mkdir /tmp/images
docker save -o /tmp/images/bulk.tar $(docker images -q)
vitest:
runs-on: ubuntu-latest
Expand All @@ -146,3 +152,19 @@ jobs:
working-directory: ./romeo/asset-contract
- run: npm run test
working-directory: ./romeo/asset-contract

integretion:
runs-on: ubuntu-latest
needs: ["linter", "devenv"]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: docker-images
path: /tmp/images
- uses: davidB/rust-cargo-make@v1
with:
version: "0.36.13"

- run: "docker load --input /tmp/images/bulk.tar"
#- run: "cargo make integration"
14 changes: 14 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,17 @@ dependencies = ["clean", "format", "coverage", "release"]

[tasks.default]
run_task = "pr-validation"

# Integration
# ----------
#[tasks.build-devenv]
#command = "./build.sh"

[tasks.build-testbed]
command = "pushd integration && ./bin/build && popd"


[tasks.integration]
#dependencies = ["build-devenv", "build-testbed"]
dependencies = ["build-testbed"]
command = "./integration/bin/test"

0 comments on commit 2cd98d7

Please sign in to comment.