Skip to content

Merge branch 'mbelt3/stage' of github.com:p2p-org/polkadot-profit-tra… #172

Merge branch 'mbelt3/stage' of github.com:p2p-org/polkadot-profit-tra…

Merge branch 'mbelt3/stage' of github.com:p2p-org/polkadot-profit-tra… #172

Workflow file for this run

name: Build and test mbelt
on:
push:
branches: ['mbelt3/stage']
jobs:
lint:
name: Lint with prettier, eslint and tslint
runs-on: ubuntu-latest
env:
working-directory: ./main
steps:
- uses: actions/checkout@v3
- name: Install modules
working-directory: ${{env.working-directory}}
run: yarn
- name: Run Prettier
working-directory: ${{env.working-directory}}
run: yarn prettier --check src
- name: Run ESLint
working-directory: ${{env.working-directory}}
run: yarn lint
- name: Run tsc
working-directory: ${{env.working-directory}}
run: yarn tsc
test:
name: Run unit tests
runs-on: ubuntu-latest
env:
working-directory: ./main
steps:
- uses: actions/checkout@v3
- name: Install modules
working-directory: ${{env.working-directory}}
run: yarn
- name: Run Unit Tests
working-directory: ${{env.working-directory}}
run: yarn test