Skip to content

fix(protocol): updated ratios for an arb vault #890

fix(protocol): updated ratios for an arb vault

fix(protocol): updated ratios for an arb vault #890

name: CI-Contracts
on:
pull_request:
branches:
- main
paths:
- "packages/protocol/**"
push:
branches:
- main
paths:
- "packages/protocol/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
#lint:
#name: Run Linters
#runs-on: ubuntu-latest
#strategy:
#matrix:
#node-version: [16.x]
#steps:
#- uses: actions/checkout@v3
#- name: Use Node.js
#uses: actions/setup-node@v3
#with:
#node-version: ${{ matrix.node-version }}
#cache: "yarn"
#- name: Install Foundry
#uses: foundry-rs/foundry-toolchain@v1
#with:
#version: nightly
#- run: yarn lint:check
forge:
name: Run Unit and E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install forge dependencies
run: yarn protocol:install
- name: Precompile using 0.8.14 and via-ir=false
run: yarn protocol:build
- name: "Create env file"
run: |
touch .env
echo export RPC_MAINNET="${{ secrets.RPC_MAINNET }}" >> .env
echo export RPC_OPTIMISM="${{ secrets.RPC_OPTIMISM }}" >> .env
echo export RPC_RINKEBY="${{ secrets.RPC_RINKEBY }}" >> .env
echo export RPC_GOERLI="${{ secrets.RPC_GOERLI }}" >> .env
echo export RPC_OPTIMISM_GOERLI="${{ secrets.RPC_OPTIMISM_GOERLI }}" >> .env
cat .env
- name: "Test env file"
run: |
cat .env
- name: Run tests
shell: bash
run: |
source .env && yarn protocol:test