fix: use 'fast-runtime' in pre-release pipline #575
Workflow file for this run
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
name: CI | |
on: | |
- pull_request | |
env: | |
API_URL: "ws://127.0.0.1:9947" | |
TEST_PALLET_ADDRESS: ${{ secrets.TEST_PALLET_ADDRESS }} | |
TEST_SUDO_NAME: ${{ secrets.TEST_SUDO_NAME }} | |
TX_VERBOSE: true | |
jobs: | |
complete-setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Clone mangata node repository | |
uses: actions/checkout@v3 | |
with: | |
repository: mangata-finance/mangata-node | |
path: mangata-repo | |
ref: develop | |
- name: Setup Node version and cache dependencies | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "yarn" | |
- name: Install WASM toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
target: wasm32-unknown-unknown | |
- name: Replace parachain docker image reference in config | |
working-directory: mangata-repo/devops/parachain-launch | |
run: sed -i 's+mangatasolutions/mangata-node:.*+mangatasolutions/mangata-node:develop-fast+g' config.yml | |
- name: Generate the config | |
working-directory: mangata-repo/devops/parachain-launch | |
run: npx @open-web3/parachain-launch generate config.yml | |
- name: Run the Node | |
working-directory: mangata-repo/devops/parachain-launch/output | |
run: | | |
docker-compose up -d --build | |
docker ps | |
- name: Sleep for 3 minutes | |
run: sleep 180s | |
- name: Install deps | |
run: yarn install --frozen-lockfile | |
- name: Install peer deps | |
run: yarn peer | |
- name: Lint | |
run: yarn eslint | |
- name: Build the SDK | |
run: yarn build | |
- name: Run tests | |
run: yarn test |