This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
Fix withdraw restrictions #765
Workflow file for this run
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: "CI" | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v3" | |
- name: "Install Node.js" | |
uses: "actions/setup-node@v3" | |
with: | |
cache: "yarn" | |
node-version: "18.x" | |
- name: "Install the dependencies" | |
uses: "borales/actions-yarn@v4" | |
with: | |
cmd: "install" | |
- name: "Lint the code" | |
uses: "borales/actions-yarn@v4" | |
with: | |
cmd: "format" | |
- name: "Create dummy .env file from template" | |
shell: bash | |
run: cp ./.env.template ./.env | |
- name: "Compile the contracts and generate the TypeChain bindings" | |
uses: "borales/actions-yarn@v4" | |
with: | |
cmd: "compile" | |
- name: "Check typescript files for compilation errors" | |
uses: "borales/actions-yarn@v4" | |
with: | |
cmd: "tsc" | |
- name: "Test the contracts" | |
uses: "borales/actions-yarn@v4" | |
with: | |
cmd: "test" |