Skip to content

Squash (#211)

Squash (#211) #315

Workflow file for this run

name: Contracts-Build
on:
push:
branches: [ main, dev ]
tags: ['*']
pull_request:
env:
cwd: ${{github.workspace}}/packages/contracts
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
unit-test-and-lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run Unit Test
run: |
yarn workspace @qfi/contracts run typechain
yarn workspace @qfi/contracts run test:unit
- name: Lint
run: |
yarn workspace @qfi/contracts run lint:solidity
yarn workspace @qfi/contracts run lint:js
qv-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run QV Test
run: |
yarn workspace @qfi/contracts run typechain
yarn workspace @qfi/contracts test:qv
qf-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run QF Test
run: |
yarn workspace @qfi/contracts run typechain
yarn workspace @qfi/contracts run test:qf