-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CI): build and run the tests in a container
Add an option to run the unit-tests with no setup require. Below are the two [1], [2] options, one with :devel docker tags and one with customizable tags. [1] ``` docker compose -f compose.yaml run unit-test ``` [2] ``` export REPOSITORY=ghcr.io/ export TAG=pr-001 docker compose -f compose.yaml -f compose.override-tags.yaml run unit-test ``` feat(CI): update workflows
- Loading branch information
Showing
16 changed files
with
185 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.git* | ||
**/target/ | ||
.gitignore | ||
cartesi-rollups-authority-claimer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# better control of tags | ||
# ``` | ||
# export REPOSITORY=ghcr.io/ | ||
# export TAG=pr-001 | ||
# docker compose -f compose.yaml -f compose.unit-test.yaml run unit-test | ||
# ``` | ||
services: | ||
ethereum_provider: | ||
image: ${REPOSITORY}cartesi/rollups-node-devnet:${TAG} | ||
migration: | ||
image: ${REPOSITORY}cartesi/rollups-node:${TAG} | ||
node: | ||
image: ${REPOSITORY}cartesi/rollups-node:${TAG} | ||
unit-test: | ||
image: ${REPOSITORY}cartesi/rollups-node-test:${TAG} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
https://github.com/cartesi/image-kernel/releases/download/v0.20.0/linux-6.5.13-ctsi-1-v0.20.0.bin | ||
https://github.com/cartesi/machine-emulator-tools/releases/download/v0.16.1/rootfs-tools-v0.16.1.ext2 | ||
https://github.com/cartesi/rollups-contracts/releases/download/v2.0.0-rc.12/rollups-contracts-2.0.0-rc.12-anvil-nightly-2044faec64f99a21f0e5f0094458a973612d0712.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
65dd100ff6204346ac2f50f772721358b5c1451450ceb39a154542ee27b4c947 /tmp/linux-6.5.13-ctsi-1-v0.20.0.bin | ||
4db885fdb4f013922d8ea8474768148ac4d45460a4ef30aea823836ea72ffed9 /tmp/rootfs-tools-v0.16.1.ext2 | ||
691d229e16b866f97ee5cf27b88573d8434f064a959061c8755e91a048c2a811 /tmp/rollups-contracts-2.0.0-rc.12-anvil-nightly-2044faec64f99a21f0e5f0094458a973612d0712.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.