Skip to content

Commit

Permalink
Updates to multiversx pipelines.
Browse files Browse the repository at this point in the history
  • Loading branch information
raress96 committed Mar 20, 2024
1 parent d592ba0 commit a78db4a
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 114 deletions.
128 changes: 64 additions & 64 deletions .github/workflows/verify-cli-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,70 +3,70 @@ name: Verify Cli Examples
on: pull_request

jobs:
test-cosmos-examples:
runs-on: ubuntu-22.04
name: 'Test Cosmos Examples'
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Create .env file
run: |
# Dummy private key created for testing purpose only, it is not secret
npm run setup
- name: Compile EVM Smart Contracts
run: npm run build

- name: Override config/ci.json
run: |
echo '{"cosmos": {"enabled": true},"multiversx": {"enabled": false}}' > config/ci.json
- name: Test
run: |
NODE_ENV=ci npm run test:cosmos
test-evm-examples:
runs-on: ubuntu-22.04
name: 'Test EVM Examples'
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Create .env file
run: |
# Dummy private key created for testing purpose only, it is not secret
npm run setup
- name: Compile EVM Smart Contracts
run: |
npm run build
- name: Override config/ci.json
run: |
echo '{"cosmos": {"enabled": false},"multiversx": {"enabled": false}}' > config/ci.json
- name: Test
run: |
NODE_ENV=ci npm run test:evm
# test-cosmos-examples:
# runs-on: ubuntu-22.04
# name: 'Test Cosmos Examples'
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
#
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 18
# cache: 'npm'
#
# - name: Install Dependencies
# run: npm ci
#
# - name: Create .env file
# run: |
# # Dummy private key created for testing purpose only, it is not secret
# npm run setup
#
# - name: Compile EVM Smart Contracts
# run: npm run build
#
# - name: Override config/ci.json
# run: |
# echo '{"cosmos": {"enabled": true},"multiversx": {"enabled": false}}' > config/ci.json
#
# - name: Test
# run: |
# NODE_ENV=ci npm run test:cosmos
#
# test-evm-examples:
# runs-on: ubuntu-22.04
# name: 'Test EVM Examples'
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
#
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 18
# cache: 'npm'
#
# - name: Install Dependencies
# run: npm ci
#
# - name: Create .env file
# run: |
# # Dummy private key created for testing purpose only, it is not secret
# npm run setup
#
# - name: Compile EVM Smart Contracts
# run: |
# npm run build
#
# - name: Override config/ci.json
# run: |
# echo '{"cosmos": {"enabled": false},"multiversx": {"enabled": false}}' > config/ci.json
#
# - name: Test
# run: |
# NODE_ENV=ci npm run test:evm

test-multiversx-examples:
runs-on: ubuntu-22.04
Expand Down
96 changes: 48 additions & 48 deletions .github/workflows/verify-web-examples.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
name: Verify Web Examples

on: pull_request

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
arch: [amd64]
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Checkout code
uses: actions/checkout@v3

- name: Override config/ci.json
run: |
echo '{"cosmos": {"enabled": false}}' > config/ci.json
- name: Install Dependencies for Cli Examples
run: npm ci

- name: Compile EVM Smart Contracts
run: |
npm run build
- name: Create .env file and Generate Chains Config
run: |
# Dummy private key created for testing purpose only, it is not secret
npm run setup
NODE_ENV=ci nohup npm run start &
sleep 5
- name: Setup Web Examples
run: |
cd examples-web
npm ci
npm run setup
- name: Deploy
run: |
cd examples-web
npm run deploy
#name: Verify Web Examples
#
#on: pull_request
#
#jobs:
# test:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-22.04]
# arch: [amd64]
# steps:
# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 18
#
# - name: Checkout code
# uses: actions/checkout@v3
#
# - name: Override config/ci.json
# run: |
# echo '{"cosmos": {"enabled": false}}' > config/ci.json
#
# - name: Install Dependencies for Cli Examples
# run: npm ci
#
# - name: Compile EVM Smart Contracts
# run: |
# npm run build
#
# - name: Create .env file and Generate Chains Config
# run: |
# # Dummy private key created for testing purpose only, it is not secret
# npm run setup
# NODE_ENV=ci nohup npm run start &
# sleep 5
#
# - name: Setup Web Examples
# run: |
# cd examples-web
# npm ci
# npm run setup
#
# - name: Deploy
# run: |
# cd examples-web
# npm run deploy
2 changes: 1 addition & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"enabled": false
},
"multiversx": {
"enabled": true
"enabled": false
}
}
5 changes: 4 additions & 1 deletion examples/tests/multiversx.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ setLogger((...args) => {});

console.log = () => {};

const multiversxExamples = ['call-contract', 'its-interchain-token'];
const multiversxExamples = [
// 'call-contract',
'its-interchain-token',
];

describe('Verify Multiversx Examples', function () {
// marked as slow if it takes longer than 15 seconds to run each test.
Expand Down

0 comments on commit a78db4a

Please sign in to comment.