Add VSC Coin (contract + frontend) #1
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: Smart Contracts Build | |
env: | |
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }} | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "smart-contracts/**" | |
push: | |
branches: | |
- main | |
jobs: | |
run-contracts-integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.x ] | |
defaults: | |
run: | |
working-directory: smart-contracts | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
- name: Install the dependencies | |
run: npm ci | |
- name: Lint the code | |
run: npm run lint | |
- name: Compile the contracts | |
run: npm run compile | |
- name: Generate the TypeChain bindings | |
run: npm run typechain | |
- name: Test the contracts and generate the coverage report | |
run: npm run coverage |