Extend Swap Contract with a new behavior to take a fixed fee #2426
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: Lint | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
cache: | |
description: 'Should use dependency cache' | |
required: false | |
default: 'true' | |
clean: | |
description: 'Clean cache before install' | |
required: false | |
default: 'false' | |
jobs: | |
files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
if: github.event.inputs.cache == 'true' | |
with: | |
path: | | |
~/.cache/yarn | |
node_modules | |
key: ${{ runner.OS }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}-v2 | |
restore-keys: | | |
${{ runner.OS }}-yarn-cache- | |
- name: Clean Yarn cache | |
if: github.event.inputs.clean == 'true' | |
run: yarn cache clean | |
- name: Install dependencies | |
run: yarn install | |
- name: Build packages | |
run: yarn build | |
env: | |
BLOCK_NUMBER: 20971320 | |
NETWORK_FORK: 'mainnet' | |
MAINNET_URL: ${{ secrets.MAINNET_URL }} | |
PRIV_KEY_MAINNET: ${{ secrets.PRIV_KEY_MAINNET }} | |
PRIV_KEY_TENDERLY: ${{ secrets.PRIV_KEY_MAINNET }} | |
- name: Lint | |
run: yarn lint | |
- name: Format | |
run: yarn format:check |