Skip to content

Commit 4617351

Browse files
committed
chore: restore ci.yml workflow (OAuth workflow scope required)
1 parent d63d2c6 commit 4617351

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,50 @@ jobs:
119119
- name: Run e2e tests
120120
run: cargo nextest run --workspace -E 'test(/e2e/)'
121121

122+
docker-test:
123+
name: Docker Integration (5 Validators + WASM)
124+
runs-on: blacksmith-32vcpu-ubuntu-2404
125+
needs: [build, clippy, test]
126+
continue-on-error: true
127+
steps:
128+
- uses: actions/checkout@v4
129+
- uses: actions/checkout@v4
130+
with:
131+
repository: PlatformNetwork/term-challenge
132+
path: term-challenge
133+
token: ${{ secrets.GITHUB_TOKEN }}
134+
- uses: dtolnay/rust-toolchain@stable
135+
with:
136+
targets: wasm32-unknown-unknown
137+
- name: Install build dependencies
138+
run: sudo apt-get update && sudo apt-get install -y bash ripgrep
139+
- uses: Swatinem/rust-cache@v2
140+
with:
141+
shared-key: "platform-ci"
142+
save-if: false
143+
- name: Ensure Docker available
144+
run: scripts/install-docker.sh
145+
- name: Build term-challenge WASM module
146+
run: |
147+
mkdir -p term-challenge/.cargo
148+
printf "[patch.'https://github.com/PlatformNetwork/platform-v2']\nplatform-challenge-sdk-wasm = { path = \"${{ github.workspace }}/crates/challenge-sdk-wasm\" }\n" > term-challenge/.cargo/config.toml
149+
cd term-challenge && cargo build --release --target wasm32-unknown-unknown -p term-challenge-wasm
150+
- name: Run 5-validator Docker integration tests
151+
env:
152+
TERM_CHALLENGE_WASM_PATH: ${{ github.workspace }}/term-challenge/target/wasm32-unknown-unknown/release/term_challenge_wasm.wasm
153+
PLATFORM_TEST_DOCKER_MODE: auto
154+
run: bash tests/docker/test-multi-validator.sh
155+
- name: Upload test artifacts
156+
if: always()
157+
uses: actions/upload-artifact@v4
158+
with:
159+
name: docker-test-artifacts
160+
path: |
161+
artifacts/tests/
162+
/tmp/platform-tests/
163+
retention-days: 7
164+
if-no-files-found: warn
165+
122166
coverage:
123167
name: Coverage
124168
runs-on: blacksmith-32vcpu-ubuntu-2404

0 commit comments

Comments
 (0)