Skip to content

config: forge init #256

config: forge init

config: forge init #256

Workflow file for this run

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