Add mETH as collateral to USDT market on Mainnet #3746
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: Run Unit Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
unit-tests: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
env: | |
ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }} | |
SNOWTRACE_KEY: ${{ secrets.SNOWTRACE_KEY }} | |
INFURA_KEY: ${{ secrets.INFURA_KEY }} | |
POLYGONSCAN_KEY: ${{ secrets.POLYGONSCAN_KEY }} | |
ARBISCAN_KEY: ${{ secrets.ARBISCAN_KEY }} | |
LINEASCAN_KEY: ${{ secrets.LINEASCAN_KEY }} | |
OPTIMISMSCAN_KEY: ${{ secrets.OPTIMISMSCAN_KEY }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
- name: Install packages | |
run: yarn install --non-interactive --frozen-lockfile | |
- name: Compile | |
run: yarn hardhat compile | |
- name: Check types | |
run: yarn tsc | |
- name: Run tests | |
run: yarn test | |
- uses: actions/upload-artifact@v4 # upload test results | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: test-results | |
path: test-results.json | |
- uses: dorny/test-reporter@v1 | |
with: | |
name: Unit Tests # Name of the check run which will be created | |
path: 'test-results.json' # Path to test results (inside artifact .zip) | |
reporter: mocha-json # Format of test results |