Add new ezETH and weETH morpho markets #50
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: 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: "" |