Skip to content
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

test: runtime wasm regression tests #893

Merged
merged 10 commits into from
Aug 23, 2024
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,30 @@ jobs:
- name: Evaluate result
if: contains(env.VERSION_UPDATE, 'have not been updated') || contains(env.VERSION_UPDATE, 'versions don''t match') || contains(env.VERSION_UPDATE, 'downgraded')
run: exit 1

ecosystem-tests:
needs: build # Make sure this runs after build job to have the wasm artifact
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Checkout polkadot-ecosystem-tests
uses: actions/checkout@v2
with:
repository: galacticcouncil/polkadot-ecosystem-tests
ref: test/add-hydration-tests-ci

- name: Download WASM artifact
uses: actions/download-artifact@v2
with:
name: hydradx_runtime.compact.compressed.wasm

- name: Run ecosystem tests
run: |
# Set the path to the downloaded WASM file
export HYDRADX_RUNTIME_WASM_PATH="$PWD/hydradx_runtime.compact.compressed.wasm"

# Run specific tests doing XCM between hydradx and other parachains
yarn install
yarn test upgrade.test.ts
env:
HYDRADX_RUNTIME_WASM_PATH: ${{ env.HYDRADX_RUNTIME_WASM_PATH }}
Loading