Skip to content

Morpho allocator

Morpho allocator #55

Workflow file for this run

name: Tests
on:
workflow_dispatch:
pull_request:
types: [opened, ready_for_review, reopened, synchronize]
push:
branches:
- main
paths:
- '**.ts'
- '**.js'
jobs:
test:
if: github.event.pull_request.draft == false
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Prep dependencies
run: npm i
- name: Generate contracts
run: npm run generate-contracts
- name: Lint
run: npm run lint-check
- name: Run tests
run: npm run test
env:
RPC: ${{ secrets.RPC }}
RPCBASE: ${{ secrets.RPCBASE }}
RPCARB: ${{ secrets.RPCARB }}
RPCOPT: ${{ secrets.RPCOPT }}
on-failure:
runs-on: ubuntu-latest
if: ${{ always() && (needs.test.result == 'failure' || needs.test.result == 'timed_out') }}
needs:
- test
steps:
- uses: actions/checkout@v2
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_USERNAME: Positions SDK
SLACK_TITLE: Positions SDK Workflow ${{ needs.test.result }}
SLACK_COLOR: ${{ needs.test.result }}
MSG_MINIMAL: actions url
SLACK_WEBHOOK: ${{ secrets.FE_TEST_RESULTS_WEBHOOK }}
SLACK_FOOTER: ""