-
Notifications
You must be signed in to change notification settings - Fork 6
Added a github workflow for running examples as integration tests #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 16 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
08242d4
added CI for docker workflow
x3c41a 805a5b2
simplified workflow, reused just commands
x3c41a 464dd44
doubled timeout
x3c41a 8db6577
use ubuntu-latest directly for Docker suppor
x3c41a 3ac97ff
added docker check
x3c41a 675b40b
simplify docker verification
x3c41a 3aff147
trigger workflow on ci_cd branch pushes
x3c41a 47cf3d6
add protobuf-compiler dependency
x3c41a b85e4e6
add libclang dependency
x3c41a 0b777e4
add wasm32 target for runtime compilation
x3c41a f6a0e53
add rust-src component for wasm compilation
x3c41a 64264d5
use host networking for IPFS Docker on Linux/CI
x3c41a ca12545
fix Docker networking and add zombienet debugging
x3c41a a5e204c
fix: use absolute paths for zombienet and bulletin binary
x3c41a 310a547
renamed
x3c41a c03485f
removed docker verification step - not needed anymore
x3c41a 8bd3e97
Merge branch 'just_docker' into ci_cd
x3c41a 99cbf16
Update .github/workflows/integration-test.yml
x3c41a eafe553
Update .github/workflows/integration-test.yml
x3c41a 39f13fa
added another test as step
x3c41a fe9dbdf
updated on push branches
x3c41a 093055d
removed branhces from on pull_request
x3c41a bf10520
added ci_cd back, modified network_args (added ports)
x3c41a dd19e8f
removed flag in wget
x3c41a 589bea6
added docker setup
x3c41a 913d51a
added missing dependency
x3c41a 9916426
commented out first test - debugging second
x3c41a 500e522
fixed commit
x3c41a 1a6af76
reverted import, increased node version to 22
x3c41a 5a66383
uncommented first test
x3c41a 2a28be5
reverted branches
x3c41a 395be51
Update .github/workflows/integration-test.yml
x3c41a 36e187c
removed local set-up
x3c41a 6945ee7
Update examples/justfile
bkontur 67a2a29
parametrized run-authorize-and-store
x3c41a c23ec0e
removed duplicate
x3c41a d2a6cd4
Update examples/justfile
x3c41a 4fab99c
Removed older TODO
bkontur 4586875
Extract node version
bkontur aac0a2a
Actually use CI_IMAGE and align with check.yml
bkontur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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,62 @@ | ||
| name: Integration Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, ci_cd] | ||
| pull_request: | ||
|
Comment on lines
6
to
8
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not a GH CI/CD export, I was just looking for a way to run the workflow from my branch. Now that it's working, I can simply remove my ( |
||
| branches: [main] | ||
x3c41a marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| CI_IMAGE: "paritytech/ci-unified:bullseye-1.88.0-2025-06-27-v202507112050" | ||
|
|
||
| jobs: | ||
| smoldot-docker-test: | ||
| name: Smoldot Docker Test | ||
x3c41a marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 60 | ||
|
|
||
| steps: | ||
| - name: Checkout sources | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| targets: wasm32-unknown-unknown | ||
| components: rust-src | ||
|
|
||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y protobuf-compiler libclang-dev | ||
|
|
||
| - name: Rust cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| cache-on-failure: true | ||
| cache-all-crates: true | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
bkontur marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| cache: 'npm' | ||
| cache-dependency-path: examples/package.json | ||
|
|
||
| - name: Install just | ||
| run: cargo install just --locked || true | ||
|
|
||
| - name: Download zombienet | ||
| run: | | ||
| wget -q "https://github.com/paritytech/zombienet/releases/download/v1.3.133/zombienet-linux-x64" | ||
| chmod +x zombienet-linux-x64 | ||
| echo "ZOMBIENET_BINARY=$GITHUB_WORKSPACE/zombienet-linux-x64" >> $GITHUB_ENV | ||
|
|
||
| - name: Run smoldot workflow test | ||
x3c41a marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
x3c41a marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| working-directory: examples | ||
| run: just run-authorize-and-store-smoldot-docker | ||
bkontur marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
bkontur marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.