Skip to content

Commit 1c11c48

Browse files
authored
Merge branch 'main' into ak-adjust-westend
2 parents 32d839f + 9e44876 commit 1c11c48

File tree

26 files changed

+1610
-820
lines changed

26 files changed

+1610
-820
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: echo "CI_IMAGE=${{ env.CI_IMAGE }}" >> $GITHUB_OUTPUT
3535

3636
check-fmt:
37-
runs-on: ubuntu-latest
37+
runs-on: parity-default
3838
timeout-minutes: 20
3939
needs: [set-image]
4040
container:
@@ -57,7 +57,6 @@ jobs:
5757
5858
check:
5959
name: Cargo check
60-
# TODO: replace `parity-default` with `ubuntu-latest` when the repo becomes public.
6160
runs-on: parity-default
6261
needs: [set-image, check-fmt]
6362
container:
@@ -77,7 +76,6 @@ jobs:
7776

7877
check-benchmarking:
7978
name: Cargo check (benchmarking)
80-
# TODO: replace `parity-default` with `ubuntu-latest` when the repo becomes public.
8179
runs-on: parity-default
8280
needs: [set-image, check]
8381
container:
@@ -98,7 +96,6 @@ jobs:
9896
9997
clippy:
10098
name: Cargo clippy
101-
# TODO: replace `parity-default` with `ubuntu-latest` when the repo becomes public.
10299
runs-on: parity-default
103100
needs: [set-image, check]
104101
container:
@@ -123,7 +120,6 @@ jobs:
123120
124121
test:
125122
name: Test
126-
# TODO: replace `parity-default` with `ubuntu-latest` when the repo becomes public.
127123
runs-on: parity-default
128124
timeout-minutes: 60
129125
needs: [set-image, check]
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Integration Tests
2+
3+
# Controls when the action will run.
4+
on:
5+
# Triggers the workflow on push or pull request events but only for the master branch
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# Cancel previous runs
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
17+
cancel-in-progress: true
18+
19+
env:
20+
NODE_VERSION: 22
21+
22+
jobs:
23+
integration-tests:
24+
name: Integration Tests
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 60
27+
28+
steps:
29+
- name: Checkout sources
30+
uses: actions/checkout@v4
31+
32+
- name: Install Rust toolchain
33+
uses: dtolnay/rust-toolchain@stable
34+
with:
35+
targets: wasm32-unknown-unknown
36+
components: rust-src
37+
38+
- name: Install system dependencies
39+
run: |
40+
sudo apt-get update
41+
sudo apt-get install -y protobuf-compiler libclang-dev
42+
43+
- name: Rust cache
44+
uses: Swatinem/rust-cache@v2
45+
with:
46+
cache-on-failure: true
47+
cache-all-crates: true
48+
49+
- name: Setup Node.js
50+
uses: actions/setup-node@v4
51+
with:
52+
node-version: ${{ env.NODE_VERSION }}
53+
cache: 'npm'
54+
cache-dependency-path: examples/package.json
55+
56+
- name: Install just
57+
run: cargo install just --locked || true
58+
59+
- name: Download zombienet
60+
run: |
61+
curl -L \
62+
-H "Authorization: token ${{ github.token }}" \
63+
-o zombienet-linux-x64 \
64+
"https://github.com/paritytech/zombienet/releases/download/v1.3.138/zombienet-linux-x64"
65+
chmod +x zombienet-linux-x64
66+
echo "ZOMBIENET_BINARY=$GITHUB_WORKSPACE/zombienet-linux-x64" >> $GITHUB_ENV
67+
68+
- name: Run authorize and store (PAPI, smoldot)
69+
working-directory: examples
70+
run: just run-authorize-and-store "smoldot"
71+
72+
- name: Run authorize and store (PAPI, RPC node)
73+
working-directory: examples
74+
run: just run-authorize-and-store "ws"
75+
76+
- name: Run store chunked data + DAG-PB (PJS-API, RPC node)
77+
working-directory: examples
78+
run: just run-store-chunked-data

0 commit comments

Comments
 (0)