Skip to content

Merge branch 'master' of https://github.com/lyra-finance/v2-core #1803

Merge branch 'master' of https://github.com/lyra-finance/v2-core

Merge branch 'master' of https://github.com/lyra-finance/v2-core #1803

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- "**"
jobs:
ci-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup SSH
env:
LYRA_UTILS_SSH: ${{secrets.LYRA_UTILS}}
run: mkdir $HOME/.ssh && echo "$LYRA_UTILS_SSH" > $HOME/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa
- name: Install Submodules
run: git submodule update --init --recursive
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
# - name: Check snapshot
# run: forge snapshot --check
- name: Check format
run: forge fmt --check
- name: Run tests
run: forge test -vvv
- name: Run Coverage
run: forge coverage --report lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./lcov.info
name: lyra-v2
verbose: true