Migrate to eslint #374
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: Test | |
on: [push, pull_request] | |
jobs: | |
test_ima_js: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [16, 18] | |
env: | |
MAINNET_ENDPOINT: http://127.0.0.1:8545 | |
SCHAIN_ENDPOINT: http://127.0.0.1:15000 | |
SDK_PRIVATE_KEY: ${{ secrets.SDK_PRIVATE_KEY }} | |
SDK_ADDRESS: ${{ secrets.SDK_ADDRESS }} | |
SDK_VERSION: 0.3.1-develop.24 | |
TEST_PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }} | |
TEST_ADDRESS: ${{ secrets.TEST_ADDRESS }} | |
SKALED_LOG_LEVEL: info | |
CHAIN_NAME_SCHAIN: "Bob" | |
INSTALL_PACKAGES: "True" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Node ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Update submodules | |
run: | | |
git submodule update --remote | |
- name: Install dependencies | |
run: | | |
yarn install --production=false | |
- name: Lint code | |
run: | | |
yarn global add tslint typescript | |
yarn lint | |
- name: Run ima-sdk | |
run: | | |
NO_NGINX=True WAIT=True sudo -E bash skale-ima-sdk/scripts/run_sdk.sh | |
- name: Deploy test tokens | |
run: | | |
sudo -E yarn deploy-tokens | |
- name: Run tests | |
run: | | |
sudo -E yarn test |