Skip to content

P2: [LILA-5502] Remove functionality to hold funds in the OffsetHelper #64

P2: [LILA-5502] Remove functionality to hold funds in the OffsetHelper

P2: [LILA-5502] Remove functionality to hold funds in the OffsetHelper #64

Workflow file for this run

name: Smart contracts
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Check yarn cache
uses: actions/cache@v2
id: cache-yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Check node_modules cache
id: cache-node-modules
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-nodemodules-
- name: Install packages
run: yarn
- name: Prepare environment
run: cp .env.example .env
- name: Build contract
run: yarn compile
- name: Test contract
run: yarn test
env:
RPC_ENDPOINT: ${{ secrets.RPC_ENDPOINT }}
- name: Test solidity-docgen builds
run: yarn doc
- name: Deploy contract
run: yarn hardhat deploy --network hardhat
env:
RPC_ENDPOINT: ${{ secrets.RPC_ENDPOINT }}