fix: deploy process bugs and override logic constructor args patterns #255
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: hardhat test(yarn) | |
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
token: ${{ secrets.KROMA_GIT_TOKEN }} | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "lts/*" | |
- name: Enable corepack | |
run: corepack enable && corepack prepare yarn@stable --activate | |
- name: Cache yarn dependencies | |
id: yarn-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.yarn/cache | |
node_modules | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install yarn dependencies | |
run: yarn | |
- name: Cache solidity compiler | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.solcx | |
~/.vvm | |
~/.brownie/packages | |
key: ${{ runner.os }}-compiler-cache | |
- name: Compile solidity | |
run: yarn hardhat compile | |
- name: Test solidity | |
run: yarn hardhat test |